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
24
Task/Empty-string/LFE/empty-string.lfe
Normal file
24
Task/Empty-string/LFE/empty-string.lfe
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
> (set str "")
|
||||
()
|
||||
> (length str)
|
||||
0
|
||||
> (=:= 0 (length str))
|
||||
true
|
||||
> (=:= 0 (length "apple"))
|
||||
false
|
||||
> (=:= "apple" "")
|
||||
false
|
||||
> (=/= "apple" "")
|
||||
true
|
||||
> (=:= str "")
|
||||
true
|
||||
> (=:= "apple" '())
|
||||
false
|
||||
> (=/= "apple" '())
|
||||
true
|
||||
> (=:= str '())
|
||||
true
|
||||
> (case str ('() 'empty) ((cons head tail) 'not-empty))
|
||||
empty
|
||||
> (case "apple" ('() 'empty) ((cons head tail) 'not-empty))
|
||||
not-empty
|
||||
Loading…
Add table
Add a link
Reference in a new issue