lindex
lindex(l_listg_element[?allg_all] ) =>x_result/l_result/nil
Description
Returns the index number of the given element in l_list.
Arguments
|
Specifies whether to print the index number for all occurrences of g_element. |
Value Returned
|
The index number of g_element in l_list when |
|
|
The list of index numbers for all occurrences of g_element in l_list when |
|
Examples
lindex('(1 2 3 4) 2)
=> 2
lindex('(1 4 6 7 4 8 4) 4 ?all t)
=>(2 5 7)
lindex('(1 4 6 7 4 8 4) 4 ?all nil)
=>2
Related Topics
Return to top