split word into individual character list

Yan Da's icon

Hi, I wonder if there is a simple way to split word into individual characters.
For instance: test > t e s t or list.

I'm trying to count different letters appeared in sentences or words.

Thanks.

yaniki's icon

Hello Yan Da

Maybe something like this?

Max Patch
Copy patch and select New From Clipboard in Max.

or - if you need just to count the letters:

Max Patch
Copy patch and select New From Clipboard in Max.

Yan Da's icon

Hi Yaniki, I believe the "clear" should be replaces as "set" to clear the message box before each input, if that is your intention. I actually need to count the number of each character which is quite straight forward once the split is done. Thanks again.

Max Patch
Copy patch and select New From Clipboard in Max.

yaniki's icon

Yes, you are right, it should be "set" ;-)

Roman Thilenius's icon


atoi
zl iter
count
?

atoi
zl len
?

or regexp &7)=//whatever"`*'Ä