Simple Queries Question
Keith Hodges
keith_hodges at yahoo.co.uk
Tue Oct 10 09:49:53 UTC 2006
I havent quite worked out whether there is a really simple way to use a
MagmaCollection like a dictionary.
If I want to simply do what would be aDictionary at: key
Do I have to do a #where: returning a reader and then go through the
results to find my exact match?
e.g.
pathLookup: aString startingAt: aStructure fallback: aBlock
^( self paths where:
[ :path |
path fullPath = aString ] ) detect: [ :path | path
fullPath = aString ].
Keith
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
More information about the Magma
mailing list