These are all good suggestions guys - but don’t you find it odd that there isn’t the mirror function #excludes: which would make all of them read more naturally?
I know we can’t have all combinations- but this one really struck me as odd by its absence (particularly when I was comparing the elegance of my little coding solution to other languages). Should I propose it’s inclusion in Collection? Tim Sent from my iPhone > On 16 Mar 2019, at 08:43, Sven Van Caekenberghe <s...@stfx.eu> wrote: > > > >> On 15 Mar 2019, at 23:06, Tim Mackinnon <tim@testit.works> wrote: >> >> aString detect: [:c | ($0 to: $1) excludes: c] ifFound: aBlock. (Evaluate a >> block if the string isn’t all 0 and 1’s) > > (aString allSatisfy: [ :each | '01' includes: each ]) not. > >