Skip to content
Snippets Groups Projects
Commit f27073af authored by Viktor Kuncak's avatar Viktor Kuncak
Browse files

Minimal par package for parallelism

parent bbd4a460
No related branches found
No related tags found
No related merge requests found
/* Copyright 2009-2015 EPFL, Lausanne */
package leon
import leon.annotation._
import leon.lang._
import leon.lang.synthesis.choose
package object par {
// @library
def parallel[A,B](x: => A, y: => B) : (A,B) = {
(x,y)
}
case class Task[A](c: A) {
def join: A = c
}
// @library
def task[A](c: A) = Task(c)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment