Search a list: Difference between revisions
no edit summary
Drkameleon (talk | contribs) No edit summary |
|||
Line 234:
=={{header|Arturo}}==
<lang
▲<lang arturo>haystack: #("Zig" "Zag" "Wally" "Ronald" "Bush" "Krusty" "Charlie" "Bush" "Bozo")
▲loop #("Bush" "Washington") @(needle){
▲ f: index haystack needle
]</lang>▼
▲ if f>=0 { print f + " => " + needle } { panic "'" + needle + "' not in haystack" }
▲</lang>
▲ | program panic
=={{header|AutoHotkey}}==
|