help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Dictionary and Association


From: Wolfgang Dann
Subject: [Help-smalltalk] Dictionary and Association
Date: Wed, 06 Apr 2011 14:43:15 +0200

Hi,

I don't understand what's wrong with this one:

st> dict := Dictionary new
Dictionary (
)
st> assoc := Association key: #key1 value: 'value1'
#key1->'value1'
st> dict add: assoc
#key1->'value1'
st> dict
Dictionary (
        #key1->'value1'
)
st> assoc key: #key2 value: 'value2'
#key2->'value2'
st> dict
Dictionary (
        #key2->'value2'
)
st> dict add: assoc
#key2->'value2'
st> dict
Dictionary (
        #key2->'value2'
        #key2->'value2'
)

best regards





reply via email to

[Prev in Thread] Current Thread [Next in Thread]