Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
16
Task/S-Expressions/EchoLisp/s-expressions.echolisp
Normal file
16
Task/S-Expressions/EchoLisp/s-expressions.echolisp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
(define input-string #'((data "quoted data" 123 4.5)\n(data (!@# (4.5) "(more" "data)")))'#)
|
||||
|
||||
input-string
|
||||
→ "((data "quoted data" 123 4.5)
|
||||
(data (!@# (4.5) "(more" "data)")))"
|
||||
|
||||
(define s-expr (read-from-string input-string))
|
||||
s-expr
|
||||
→ ((data "quoted data" 123 4.5) (data (!@# (4.5) "(more" "data)")))
|
||||
|
||||
(first s-expr)
|
||||
→ (data "quoted data" 123 4.5)
|
||||
(first(first s-expr))
|
||||
→ data
|
||||
(first(rest s-expr))
|
||||
→ (data (!@# (4.5) "(more" "data)"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue