blob: 6089355bcf46bfa80a0610c055e80d2133643d2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// $Id$
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)
})
}
}
|