3 lines
184 B
Text
3 lines
184 B
Text
haystack:=L("Krusty","Charlie","Bozo","Bozo");
|
|
haystack.filterNs('==("Bozo"))[-1]; // -->3, indexError if not found
|
|
haystack.len() - 1 - haystack.reverse().index("Bozo"); // or this
|