RosettaCodeData/Task/Phrase-reversals/Smalltalk/phrase-reversals.st
2023-07-01 13:44:08 -04:00

6 lines
203 B
Smalltalk

|str|
str := 'rosetta code phrase reversal'.
Transcript showCR:(str reversed).
Transcript showCR:(((str splitBy:$ ) collect:#reversed) join:$ ).
Transcript showCR:(((str splitBy:$ ) reversed) join:$ ).