All pastes #755956 Raw Edit

Miscellany 2

public text v1 · immutable
#755956 ·published 2007-10-31 00:52 UTC
rendered paste body
step(): {/a/; "b" + step()} | {/b/; "ab" + step()}.

increment(): {/0/; "1" + /.*/} | {/1/; "0" + increment()} | {/$/; "1"}.

reverse(): {x <- /./; reverse() + x} | /$/.

unary(): {/./; increment[unary()]} | /$/.

run(): {x <- step(); output[reverse[unary()]]; run[x]}.

main(): run["a"].