My collection is a Set that contains a number of dictionaries. How can iterate over each dictionary in the Set to select a specific key.
a Set(a Dictionary('age'->'25' 'code'->2512) a Dictionary('age'->'40' 'code'->'1243') a Dictionary('age'->'35' 'code'->'7854'))
or use detect (I`m not sure if detect works like this, I never used it so far):
or use keysDo:
Check out: http://pharo.gforge.inria.fr/PBE1/PBE1ch10.html