Skip to content
Chris Petersen edited this page Oct 16, 2014 · 2 revisions

list-pos determines the position of an element in a list

Parameter Description
lst The list to be searched
element The element to be found

Example

Example 1: Find the element "dog" in a list of animal names.

(list-pos '("cat" "cow" "pig" "dog" "horse" "squirrel") "dog") 3

Clone this wiki locally