> On 2 May 2019, at 18:18, K K Subbu <kksubbu...@gmail.com> wrote: > > On 02/05/19 9:14 PM, Konrad Hinsen wrote: >> | words lengths | >> words := #('abc' 'defg'). >> lengths := Dictionary new. >> words do: >> [ :each | lengths at: each put: each size ]. > > Dictionary withKeys: words andValues: (words collect: #size) > > HTH .. Subbu > Never saw that one, cool. But it is #newFromKeys:andValues: as far as I can see
- [Pharo-users] Creating a dictionary from a list of a... Konrad Hinsen
- Re: [Pharo-users] Creating a dictionary from a ... Gabriel Cotelli
- Re: [Pharo-users] Creating a dictionary fro... Sven Van Caekenberghe
- Re: [Pharo-users] Creating a dictionary from a ... K K Subbu
- Re: [Pharo-users] Creating a dictionary fro... Sven Van Caekenberghe
- Re: [Pharo-users] Creating a dictionary from a ... Konrad Hinsen