Scheme, eh?

This commit is contained in:
sforman 2023-08-03 11:28:46 -07:00
parent 97602ade8d
commit 0122c4f249
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
(define (string-replace str from to)
(string-intersperse (string-split str from) to)
)
(define (tokenize str)
(string-split
(string-replace
(string-replace str "]" " ] ")
"[" " [ "
)
)
)