Aug. 30, 2011
2:57 p.m.
I have similar definitions from symbol to block for SortedCollection like; #('3' '20' '100') asSortedCollection: #size ascendingSortBlock. "#('3' '20' '100')" #size ascendingSortBlock evaluates to be [:a :b| (a perform: #size) <= (b perform:#size) ] #('3' '20' '100') asSortedCollection: #size descendingSortBlock. "#('100' '20' '3')" Similarly, following can be done #('3' '20' '100') asSortedCollection: #first ascendingSortBlock. #('3' '20' '100') asSortedCollection: #first descendingSortBlock. -- View this message in context: http://forum.world.st/Symbol-value-tp3778525p3778943.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.