Sierpinski Fractal by notogawa

main=readLn>>=mapM putStrLn.("  "%[" /\\","/__\\"]!!).pred
(#)=zipWith(++)
s%x=x:(s++s)%(map(s++)x++x#tail(scanr(:)""s)#x)

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

download

return to the top page