list pos - part-cw/lambdanative GitHub Wiki
(list-pos lst element)
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