Tx peter. It is great to see you around!. It is on my todo to produce a booklet on Soup and your HTML scrapping tutorial :). You will see it will be nice. Stef On Sat, May 27, 2017 at 10:41 PM, PBKResearch <peter@pbkresearch.co.uk> wrote:
Stef
Cyril is right; there is a class KeyedTree which is a subclass of Dictionary and is in effect a set of nested dictionaries. There was a brief discussion of this in April, initiated by Markus Böhm, who wanted a neat way of looking up entries in nested dictionaries. KeyedTree uses the idea of a path, which is an array of the successive keys needed to locate an entry in an embedded dictionary. Sven also saw this, and has extended NeoJSONObject to provide the same embedding and path lookup. To see Svenâs brief explanation, find the original thread, entitled â [Pharo-users] Hot to retrieve values from Nested Dictionariesâ (note the typo in the original post) starting on 24 April 2017, or see the class comment for NeoJSONObject.
Hope this helps.
Peter Kenny
*From:* Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] *On Behalf Of *Cyril Ferlicot *Sent:* 27 May 2017 19:42 *To:* Any question about pharo is welcome <pharo-users@lists.pharo.org> *Subject:* Re: [Pharo-users] Dictionary whose values are dictionaries
On sam. 27 mai 2017 at 20:35, Cyril Ferlicot <cyril.ferlicot@gmail.com> wrote:
On sam. 27 mai 2017 at 20:29, Stephane Ducasse <stepharo.self@gmail.com> 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 something like this but I don't have a computer to check this week end.
â
From my phone
Cyril
--
Cheers
Cyril Ferlicot
I think the exact name was KeyedTree.
â
From my phone
Cyril
--
Cheers
Cyril Ferlicot