Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Here goes in Smalltalk:
#('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
|
|