Search a list: Difference between revisions

Line 3,678:
the above example did not raise an exception; the following does (a handler has been added to proceed for more search words):
{{works with|Smalltalk/X}}
Notice: the code below uses the ST/X embedded-expression-string extension.
<lang smalltalk>| haystack |
haystack := 'Zig,Zag,Wally,Ronald,Bush,Krusty,Charlie,Bush,Bozo' subStrings: $,.
Anonymous user