there is a method but then I ran into
another warning
FindAndDeleteWordsWithForbiddenParts "deletes all the words that contain forbidden parts" | result | result := words select: [ :word | [ (forbiddenWords detect: [ :forbidden | word includesAll: forbidden ]) = true ] on: NotFound do: [ true ] ]. ^ result then I see a unnecearry = true but if I deleted that part the code does not what I was intented to do. Roelof Op 13-12-2018 om 18:15 schreef Richard Sargent:
|
- [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