[Cuis] Symbols that start with and uppercase letter

nacho 0800nacho at gmail.com
Mon Nov 9 18:53:16 CST 2015


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.
--
View this message in context: http://forum.world.st/Symbols-that-start-with-and-uppercase-letter-tp4860091.html
Sent from the Cuis Smalltalk mailing list archive at Nabble.com.




More information about the Cuis mailing list