Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-28 Thread Stephane Ducasse
Thanks. This is nice. I'm thinking that the at:at: could be a nice addition to our Dictionary class. On Sun, May 28, 2017 at 4:24 PM, Stan Silver via Pharo-users < pharo-users@lists.pharo.org> wrote: > > > -- Forwarded message -- > From: Stan Silver > To: pharo-users@lists.pharo

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-28 Thread Stephane Ducasse
Thanks cyril I was looking at it. On Sat, May 27, 2017 at 8:42 PM, Cyril Ferlicot wrote: > > On sam. 27 mai 2017 at 20:35, Cyril Ferlicot > wrote: > >> >> On sam. 27 mai 2017 at 20:29, Stephane Ducasse >> wrote: >> >>> Hi >>> >>> I'm looking for an implementation of dictionary whose value is a

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-28 Thread Stan Silver via Pharo-users
--- Begin Message --- Stephane Ducasse-3 wrote > Hi > > I'm looking for an implementation of dictionary whose value is also a > dictionary. > > Stef 1. These go only one level down, but I have defined these methods on class Dictionary. at: firstKey at: secondKey ^ self at: firstKey at:

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-28 Thread Stephane Ducasse
Behalf Of *Cyril Ferlicot > *Sent:* 27 May 2017 19:42 > *To:* Any question about pharo is welcome > *Subject:* Re: [Pharo-users] Dictionary whose values are dictionaries > > > > > > On sam. 27 mai 2017 at 20:35, Cyril Ferlicot > wrote: > > > > On sam. 27 m

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-27 Thread monty
You could just use a regular Dictionary, but with association keys: dict at: outerKey -> innerKey put: innerValue

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-27 Thread Bernardo Ezequiel Contreras
hi, i'm using a multi-valued dictionary https://github.com/vonbecmann/multi-valued-dictionary in the following way itemsByKey := MultiValuedDictionary dictionary: IdentityDictionary collection: IdentityDictionary so i can check the existence of an item by its key (an ordered pair) (itemsByKe

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-27 Thread PBKResearch
May 2017 19:42 To: Any question about pharo is welcome Subject: Re: [Pharo-users] Dictionary whose values are dictionaries On sam. 27 mai 2017 at 20:35, Cyril Ferlicot mailto:cyril.ferli...@gmail.com> > wrote: On sam. 27 mai 2017 at 20:29, Stephane Ducasse mailto:stepharo.s...@gma

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-27 Thread Cyril Ferlicot
On sam. 27 mai 2017 at 20:35, Cyril Ferlicot wrote: > > On sam. 27 mai 2017 at 20:29, Stephane Ducasse > wrote: > >> Hi >> >> I'm looking for an implementation of dictionary whose value is also a >> dictionary. >> >> Stef >> > Hi! > > I don't remember the exact name but I know that an algo at sy

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-27 Thread p...@highoctane.be
Looks like a JsonObject On Sat, May 27, 2017 at 8:28 PM, Stephane Ducasse wrote: > Hi > > I'm looking for an implementation of dictionary whose value is also a > dictionary. > > Stef >

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-27 Thread Cyril Ferlicot
On sam. 27 mai 2017 at 20:29, Stephane Ducasse wrote: > Hi > > I'm looking for an implementation of dictionary whose value is also a > dictionary. > > Stef > Hi! I don't remember the exact name but I know that an algo at synectique use such a collection. The name is something like Ktree or somet