RosettaCodeData/Task/Search-a-list/Common-Lisp/search-a-list-2.lisp
2014-01-17 05:34:36 +00:00

8 lines
217 B
Common Lisp

CL-USER> (defparameter *list* '(Zig Zag Wally Ronald Bush Krusty Charlie Bush Bozo))
*LIST*
CL-USER> (position 'Bush *list*)
4
CL-USER> (position 'Bush *list* :from-end t)
7
CL-USER> (position 'Washington *list*)
NIL