For Loop by leonid

a=*1..10
print a.map{|x|$\="
#{S='  '*~-x}next#$\"
S+"for v#{x} = #{1/x} to 9
"},S+'  print v'+a*',v'

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

download

return to the top page