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

Reply via email to