Symbols to Class Names?
Helge Horch
Helge.Horch at munich.netsurf.de
Tue Mar 13 01:02:36 UTC 2001
At 01:16 12.03.2001 -0800, Randal L. Schwartz wrote:
>classList _
> (yourDictionary collect: [:i | Smalltalk at: i ifAbsent: nil])
> select: [:i | i isKindOf: Class]
>
>If the parens offend anyone, let me know. I still program Lisp in
>every language I write. :)
Isn't the MethodFinder great? Just enter the slightly contrived
#(Integer) . [:i | Smalltalk at: i ifAbsent: [nil]] . [:i | i isKindOf:
Class] . {Integer}
and lo and behold, you'll find Collection>>collect:thenSelect:
classList _ dansSet
collect: [:i | Smalltalk at: i ifAbsent: [nil]]
thenSelect: [:i | i isKindOf: Class]
Parens? What parens?
;-)
Helge
More information about the Squeak-dev
mailing list
|