15 lines
303 B
Text
15 lines
303 B
Text
haystack=#("Zig","Zag","Wally","Ronald","Bush","Krusty","Charlie","Bush","Bozo")
|
|
|
|
for needle in #("Washington","Bush") do
|
|
(
|
|
index = findItem haystack needle
|
|
|
|
if index == 0 then
|
|
(
|
|
format "% is not in haystack\n" needle
|
|
)
|
|
else
|
|
(
|
|
format "% %\n" index needle
|
|
)
|
|
)
|