How to find the position of atom in the list
Posted: Mon Nov 07, 2011 11:15 am
How to find the position of an atom in the list. for eg
(position-in-list 'a (a b c d e))
-> 0
(position-in-list 'b (a b c d e) )
-> 1
(position-in-list 'Z(a b c d e) )
->nil.
(position-in-list 'a (a b c d e))
-> 0
(position-in-list 'b (a b c d e) )
-> 1
(position-in-list 'Z(a b c d e) )
->nil.