#('one' 'two' 'three' 'four') reversed
Do a print-It in the workspace and it gives:
#('four' 'three' 'two' 'one')
You put your things in an OrderedCollection and this collection has a reversed message that can be sent to it. Voilą !
In reply to Smalltalk - Re: Five Ways to Reverse a String of Words (C#, Perl 5, Perl 6, Ruby, Haskell)
by carcassonne
in thread Five Ways to Reverse a String of Words (C#, Perl 5, Perl 6, Ruby, Haskell)
by eyepopslikeamosquito
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |