[Tutor] reversing a string
idiot1 at netzero.net
Sat Oct 9 00:46:42 CEST 2004
ok, something struck a spark in my concrete enshrouded skull; how does
one reverse a string.
Consider a string:'qwerty'. A SIMPLE and FAST process to reverse it. I
considered appending and recursion, but there ought to be a better way,
although dealing off the bottom of the deck does have a peverse
attraction to it (slicing and taking -1 char off the string and
appending it to a string).
Anyone want to discuss this task?
kniht http://www.tinylist-org/ Freedom software
+-----+ Free list services -http://www.listville.net/
| BOX | http://www.howlermonkey.net/ - Free Email service
+-----+ In HER Service- http://www.pinellasintergroupsociety.org/
think http://www.sacredelectron.org/ - my personal screed pit.
More information about the Tutor