|Subject:||Re: build-in function for obtaining the index of an element of a list|
|Date:||Thu, 5 Jan 2012 08:52:17 +0900|
> Is there any Emacs built-in function that returns the index of an element ofIf you don't mind using the CL package (included with Emacs), the
> a list?
function you want is `position'
(position "banana" '("apple" "banana" "orange") :test 'string=) => 1
|[Prev in Thread]||Current Thread||[Next in Thread]|