for example I have this structure:
(define-struct example (n1 n2))
and I have this list:
(list (make-example 1 3) (make-example 7 9) empty)
As I can convert it into string?
for example I have this structure:
(define-struct example (n1 n2))
and I have this list:
(list (make-example 1 3) (make-example 7 9) empty)
As I can convert it into string?
Racket already has the ~ a procedure to do exactly that:
Also, note that
~a
has tons of options for formatting which may come in handy.Since you have tagged both racket and scheme (two incompatible languages) I've ignored Scheme completely in my answer. I assume you would not tag racket if you were programming in #!r5rs or #!r6rs.