Words containing "the" substring: Difference between revisions
Content added Content deleted
m (→{{header|Smalltalk}}: forgot to mention dialect) |
(→{{header|Smalltalk}}: changed because the problem statement wasn't clear, but the discussions seems to imply that (sigh)) |
||
Line 669:
{{works with|Smalltalk/X}}
<lang smalltalk>'unixdict.txt' asFilename contents
select:[:word | (word size > 11) and:[word includesString:'the' caseSensitive:trueOrFalseWhoKnows]]
thenDo:#transcribeCR</lang>
Line 680:
((word := Stdin nextLine) size > 11
and:[word includesString:'the' caseSensitive: trueOrFalseWhoKnows]
) ifTrue:[
Stdout nextPutLine: word
|