Tower of Hanoi by xsd

let rec(@)(+)p=fst+p;p '
';snd+p and($)n a b c f p=n>1&(n-1$a)c b f p;p(f(a,b));n>1&(n-1$c)b a f p;;(read_int()$'A')'C''B'@print_char

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

download

return to the top page