Skip to content

STR is the inverse of READ-STRING - #194

Open
shawwn wants to merge 1 commit into
sctb:masterfrom
shawwn:2018-09-06/str
Open

STR is the inverse of READ-STRING#194
shawwn wants to merge 1 commit into
sctb:masterfrom
shawwn:2018-09-06/str

Conversation

@shawwn

@shawwn shawwn commented Sep 6, 2018

Copy link
Copy Markdown
Contributor
$ LUMEN_HOST=node bin/lumen
> (let (read-file (get (require 'system) 'read-file)
        s (read-file "compiler.l")
        forms (read-string (cat "(do " s ")"))
        s1 (str forms)
        s2 (str (read-string (str forms))))
    (= s1 s2))
true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant