Cross Product of two Strings by leonid

#!ruby -pal
$_,a=$F
gsub(/./){a.gsub /./,$&+'\& '}
chop

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

download

return to the top page