vle-search
(vle-search item lst
asIdx)
searches for 'item' in list
'lst' and returns
either the index of 'item'
in 'lst'
(if 'asIdx' is non-NIL), or the list starting
with 'item' (if 'asIdx'
is NIL), or NIL if 'item' is not contained
in 'lst'
Arguments |
'item' object to search for in 'lst' |
Return |
the index of
'item' in
'lst', or the
sub-list starting with 'item', depending on
'asIdx' flag; |
Example |
(vle-search 11 '(1 2 3 11 22
33 ) nil) returns '(11 22 33) |
Alias |
|
Remarks |
returned index is 0-based |
© Bricsys NV. All rights reserved. |