set i [gets stdin s] set o "" while {$i} {puts [set o [set c [string in $s [incr i -1]]]$o$c]}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page