new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
10
Task/Search-a-list/PicoLisp/search-a-list.l
Normal file
10
Task/Search-a-list/PicoLisp/search-a-list.l
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(de lastIndex (Item Lst)
|
||||
(- (length Lst) (index Item (reverse Lst)) -1) )
|
||||
|
||||
(de findNeedle (Fun Sym Lst)
|
||||
(prinl Sym " " (or (Fun Sym Lst) "not found")) )
|
||||
|
||||
(let Lst '(Zig Zag Wally Ronald Bush Krusty Charlie Bush Bozo)
|
||||
(findNeedle index 'Washington Lst)
|
||||
(findNeedle index 'Bush Lst)
|
||||
(findNeedle lastIndex 'Bush Lst) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue