Ghost leg solver by nobsun

main=interact$f;f s=s++'\n':foldl1(#)(lines s);(x:' ':y)#('|':z:w)=let p:q=y#w in case z of{'-'->p:' ':x:q;_->x:' ':p:q};x#_=x\x0d

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

download

return to the top page