tests on list stuff
This commit is contained in:
parent
baa268bce9
commit
330cc75f12
|
@ -1,2 +1,9 @@
|
||||||
(1 2 3)
|
(1 2 3)
|
||||||
("hello" "world")
|
("hello" "world")
|
||||||
|
true
|
||||||
|
true
|
||||||
|
false
|
||||||
|
true
|
||||||
|
hello
|
||||||
|
()
|
||||||
|
world
|
||||||
|
|
|
@ -2,3 +2,11 @@
|
||||||
|
|
||||||
'(1 2 3)
|
'(1 2 3)
|
||||||
(list "hello" "world")
|
(list "hello" "world")
|
||||||
|
|
||||||
|
(empty? empty)
|
||||||
|
(empty? '())
|
||||||
|
(cons? '())
|
||||||
|
(cons? '(hello))
|
||||||
|
(first '(hello))
|
||||||
|
(rest '(hello))
|
||||||
|
(second '(hello world))
|
Loading…
Reference in New Issue
Block a user