[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
build-in function for obtaining the index of an element of a list
From: |
ishi soichi |
Subject: |
build-in function for obtaining the index of an element of a list |
Date: |
Wed, 4 Jan 2012 15:33:02 +0900 |
I have a question about Emacs Lisp.
Is there any Emacs built-in function that returns the index of an element of a list?
More specifically, say I have a list
(setq lista '("apple" "banana" "orange))
then implement the function, which I want,
(functionName lista "banana") ; => 1
If not, please give me an example of such function definition.
Thanks in advance!
soichi
- build-in function for obtaining the index of an element of a list,
ishi soichi <=