Sierpinski Fractal by moriA

main=interact$unlines.("  "%[" /\\","/__\\"]!!).pred.read
(#)=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