FindAndDeleteWordsWithForbiddenParts "deletes all the words that contain forbidden parts" | result | result := words select: [ :word | [ (forbiddenWords reject: [ :forbidden | '*' , forbidden , '*' match: word ]) isNotEmpty ] on: NotFound do: [ false ] ]. ^ result but I see warnings that I have to use a stream instead of string concentation. Anyone hints how to do so ? Roelof |
- [Pharo-users] how to rewrite this to use a stream Roelof Wobben
- Re: [Pharo-users] how to rewrite this to use a str... Richard Sargent
- Re: [Pharo-users] how to rewrite this to use a... Roelof Wobben
- Re: [Pharo-users] how to rewrite this to u... Richard Sargent
- Re: [Pharo-users] how to rewrite this to use a str... Richard O'Keefe
- Re: [Pharo-users] how to rewrite this to use a... p...@highoctane.be
- Re: [Pharo-users] how to rewrite this to u... Roelof Wobben
- Re: [Pharo-users] how to rewrite this ... Roelof Wobben