blob: a1b8ca9e04a1eb33fb4a3ae4fc2c5cf15e3900a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import scala.util.continuations._
object Test {
def main(args : Array[String]) {
println(reset {
val x = shift(List(1,2,3).flatMap[Int, List[Int]])
List(x + 2)
})
}
}
|