Scheme, eh?
This commit is contained in:
@@ -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 "]" " ] ")
|
||||||
|
"[" " [ "
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user