March 16, 2019
9:04 a.m.
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 <sven@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.