Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-18 Thread Richard O'Keefe
An old draft has been available for yonks through http://www.cs.otago.ac.nz/staffpriv/ok/software.htm There are two *major* changes not included in that release and not quite finished yet. On Tue, 19 Mar 2019 at 07:09, Esteban Maringolo wrote: > El dom., 17 mar. 2019 a las 6:33, Sven Van

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-18 Thread Dale Henrichs
Isn't this an "ultimate" goal for Pharo  ... once you've got a stable (truly) minimum image, custom class libraries are possible if not desirable ... Dale On 3/18/19 11:08 AM, Esteban Maringolo wrote: El dom., 17 mar. 2019 a las 6:33, Sven Van Caekenberghe () escribió: On 17 Mar 2019, at

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-18 Thread Esteban Maringolo
El dom., 17 mar. 2019 a las 6:33, Sven Van Caekenberghe () escribió: > > > > > On 17 Mar 2019, at 07:56, Richard O'Keefe wrote: > > > > (1) As it happens, my Smalltalk library *does* have > > "my mystery Smalltalk" ;-) Codename "Unicorn". :) Jokes aside, I'd love to see such implementation

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-18 Thread Tim Mackinnon
And looking at this in the code - there are quite a few variations of #includes… that I don’t think it makes sense to write the mirror of all of them. Not it is... > On 18 Mar 2019, at 16:48, Tim Mackinnon wrote: > > Thanks guys - I always learn something new from these threads. > >> On 17

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-18 Thread Tim Mackinnon
Thanks guys - I always learn something new from these threads. > On 17 Mar 2019, at 06:56, Richard O'Keefe wrote: > > (1) As it happens, my Smalltalk library *does* have > #excludes: and #identityExcludes: > (2) The definitions are trivial. > excludes: item > ^(self includes:

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-17 Thread Sven Van Caekenberghe
> On 17 Mar 2019, at 07:56, Richard O'Keefe wrote: > > (1) As it happens, my Smalltalk library *does* have "my mystery Smalltalk" ;-) > #excludes: and #identityExcludes: > (2) The definitions are trivial. > excludes: item > ^(self includes: item) not > identityExcludes:

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-17 Thread Richard O'Keefe
(1) As it happens, my Smalltalk library *does* have #excludes: and #identityExcludes: (2) The definitions are trivial. excludes: item ^(self includes: item) not identityExcludes: item ^(self identityIncludes: item) not If you want to execute aBlock when aString is not all

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-16 Thread Ben Coman
On Sat, 16 Mar 2019 at 17:05, Tim Mackinnon 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 >

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-16 Thread Tim Mackinnon
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

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-16 Thread Sven Van Caekenberghe
> On 15 Mar 2019, at 23:06, Tim Mackinnon 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.

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-15 Thread Ben Coman
On Sat, 16 Mar 2019 at 06:33, Tim Mackinnon wrote: > Hi - in my quest to understand the edgier details of Pharo (and Smalltalk) > - and driven by fresh thoughts of completing exercism exercises - I was > surprised to find that there is no #excludes: operation on collection to > mirror the

[Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-15 Thread Tim Mackinnon
Hi - in my quest to understand the edgier details of Pharo (and Smalltalk) - and driven by fresh thoughts of completing exercism exercises - I was surprised to find that there is no #excludes: operation on collection to mirror the #includes: operation? I was curious about this - its seems a