RosettaCodeData/Task/Search-a-list/Common-Lisp/search-a-list-2.lisp
2023-07-01 13:44:08 -04: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