Hi Folks,
I'm trying to generate a collection from all instances of Symbol that begin with a capital letter.
I know how to do this for one case:
| aSymbolArray aSymbol |
aSymbolArray _ Symbol allInstances.
aSymbol _ (aSymbolArray at: 1).
(aSymbol at: 1) isUppercase.
But I want to use something like collect:
| aSymbolArray |
aSymbolArray _ Symbol allInstances.
aSymbolArray collect: [ :a | | aSymbol | aSymbol _ aSymbolArray at: a. (aSymbol at: 1) isUppercase].
But I'm lost.
Any help?
Thanks in advance!
best
Nacho
Nacho
Smalltalker apprentice.
Buenos Aires, Argentina.