I'm new to Scheme, and I don't know where to start with this. I want to write a Scheme function, which takes two parameters, a list lst
and an atom atm
, and returns the index of the first location where atm
occurs in the list. The location index is 1-relative. If atm
does not occur in the list, the function returns n + 1
, where n
is the length of the list.
How can I do this?