>is there a way I can check if a word has 2 the same chars after each other

Use #pairsCollect: 

'hello' pairsCollect: [:a :b | a = b ]


There is also a #pairsDo:

'hello' pairsCollect: [:a :b | Transcript show: a asString; show: b asString ]


Have fun
T. (aka astares)

Reply via email to