Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
M1 k1 = (call/cc (M2 k1)) + 3
M2 k1 k2 = if b then (k1 1) else (k2 2)
(call/cc M1) + 4
S1 = shift(λk1. k1(reset(k1((S2 k1) + 3))))
S2 k1 = shift(λk2. k2(if b then (k1 1) else (k2 2)))
reset(exit(S1 + 4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment