Search a list: Difference between revisions
Content added Content deleted
Line 3,678: | 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): |
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}} |
{{works with|Smalltalk/X}} |
||
Notice: the code below uses the ST/X embedded-expression-string extension. |
|||
<lang smalltalk>| haystack | |
<lang smalltalk>| haystack | |
||
haystack := 'Zig,Zag,Wally,Ronald,Bush,Krusty,Charlie,Bush,Bozo' subStrings: $,. |
haystack := 'Zig,Zag,Wally,Ronald,Bush,Krusty,Charlie,Bush,Bozo' subStrings: $,. |