Skip to content

Instantly share code, notes, and snippets.

@jnhnum1
jnhnum1 / gist:5430319
Last active December 16, 2015 11:49 — forked from lihaoyi/gist:5430318
var x = 0
println("reset{} " +
reset{
x = shift{ cont: (Int => Int) =>
println("cont(1): " + cont(1))
println("cont(2): " + cont(2))
5
}
println("reset() " + x)
x * 2