a=*0..9\x0d gets.split(//).map{|d|$><<d=a[d.to_i];a.delete d;a.unshift d}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page