Anonymous user
Words containing "the" substring: Difference between revisions
→{{header|Smalltalk}}: back to previous version; me stupid.
(→{{header|Smalltalk}}: back to previous version; me stupid.) |
|||
Line 667:
=={{header|Smalltalk}}==
Not clear to me if case matters or not. The code does either (replace trueOrFalseWhoKnows by true or false)
{{works with|Smalltalk/X}}
<lang smalltalk>'unixdict.txt' asFilename contents
select:[:word | (word size > 11) and:[word includesString:'the']]
|