Add stringify option for lists; stringify them to read as themselves

This commit is contained in:
bluepython508
2025-05-18 14:26:30 +01:00
parent 2dc1137679
commit 2d65bd196d

View File

@@ -49,7 +49,8 @@
(define (stringify x)
(cond ((string? x) x)
((number? x) (number->string x))
((symbol? x) (symbol->string x))))
((symbol? x) (symbol->string x))
((list? x) (string-join (append '("(") (map stringify x) '(")")) " "))))
(define-syntax R
(syntax-rules ()