Re: [Pharo-users] Set on Attribute

2016-08-25 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote > PluggableSet ? Perfect! Thanks :) My actual usage, in case anyone finds it helpful, was removing duplicate files: uniqueFiles := PluggableSet new equalBlock: [ :a :b | a isMD5Equal: b ]; hashBlock: [ :f | f

Re: [Pharo-users] Set on Attribute

2016-08-25 Thread monty
: [ lastSelected := each. true] ifFalse: [false]] > Sent: Thursday, August 25, 2016 at 7:42 PM > From: "Sean P. DeNigris" <s...@clipperadams.com> > To: pharo-users@lists.pharo.org > Subject: [Pharo-users] Set on Attribute > >

Re: [Pharo-users] Set on Attribute

2016-08-25 Thread Sven Van Caekenberghe
PluggableSet ? > On 26 Aug 2016, at 01:42, Sean P. DeNigris wrote: > > Say I have a collection like #('ab' 'ac' 'ba' bc') and I want to condense it > so that a certain attribute is unique. In this example, say the first > character, so I want one object where the first

[Pharo-users] Set on Attribute

2016-08-25 Thread Sean P. DeNigris
Say I have a collection like #('ab' 'ac' 'ba' bc') and I want to condense it so that a certain attribute is unique. In this example, say the first character, so I want one object where the first character is $a and one $b, but I don't care which object i.e. 'ab' or 'ac' for $a, but not both. Is