Functions Documentation
View Function Edit Function
Name lookup
Syntax (lookup source target keyIndex) -> found entry
Argument List source: the list to do the lookup in
target: the key to find
keyIndex: the index in the source that the target will be looked for
Returns the found entry, if any (nil otherwise)
Category list
Description Useful for extracting lists within lists
(setq theList (list 1 'one) (list 2 'two))
(lookup theList 'one 1) -> (list 1 'one)
(lookup theList 2 0) -> (list 2 'two)