On Sat, 16 Mar 2019 at 17:05, Tim Mackinnon <[email protected]> wrote:

> 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?
>

I'm mostly ambivalent, except simplifying transition from other languages
is useful.
What are some examples for other languages?

cheers -ben


> Tim
>
> Sent from my iPhone
>
> > On 16 Mar 2019, at 08:43, Sven Van Caekenberghe <[email protected]> wrote:
> >
> >
> >
> >> On 15 Mar 2019, at 23:06, Tim Mackinnon <[email protected]> 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.
> >
> >
>
>
>

Reply via email to