2016-12-05 22:15:40 +01:00
|
|
|
{{task heading}}
|
|
|
|
|
|
|
|
|
|
Find the index of a string (needle) in an indexable, ordered collection of strings (haystack).
|
|
|
|
|
|
|
|
|
|
Raise an exception if the needle is missing.
|
|
|
|
|
|
2013-04-10 12:38:42 -07:00
|
|
|
If there is more than one occurrence then return the smallest index to the needle.
|
|
|
|
|
|
2016-12-05 22:15:40 +01:00
|
|
|
{{task heading|Extra credit}}
|
|
|
|
|
|
|
|
|
|
Return the largest index to a needle that has multiple occurrences in the haystack.
|
|
|
|
|
|
|
|
|
|
{{task heading|See also}}
|
|
|
|
|
|
|
|
|
|
* [[Search a list of records]]
|
|
|
|
|
|
|
|
|
|
<hr>
|