Skip to content
Diip edited this page Aug 8, 2018 · 2 revisions

list-pos determines the position of the first instance 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