Search a list: Difference between revisions

m
m (Added output.)
Line 2,205:
The last occurence is at index 8</pre>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
This examples shows you the first appearance, the last appearance, and all appearances (as a list):
<lang Mathematica>haystack = {"Zig","Zag","Wally","Ronald","Bush","Zig","Zag","Krusty","Charlie","Bush","Bozo"};
1,111

edits