Functions Documentation |
|
Name |
find |
Syntax |
(find source target [keyIndex]) -> position of target in source (0-based) |
Argument List |
source: The string or list that you are looking for the other expression in.
target: The expression you are looking for.
[keyindex]: The index in the source you want to start looking at |
Returns |
integer: 0 based index of the expression you where looking for. Returns nil if not found. |
Category |
list, string operator, 0.99
|
Description |
Finds the index of the first time that the second argument appears in the first argument and returns it. |
Example |
(find '(1 2 3 4 5) 3)
Returns 2 |
Comment |
Nice little function helpful in formatted strings and lists. |