base one to ten by leonid

puts (1..?d).map{|n|n.to_s 10+n%~9rescue'1'*n}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page