Skip to content
Snippets Groups Projects
Commit fb058a2d authored by Ali Sinan Köksal's avatar Ali Sinan Köksal
Browse files

example demonstrating the "single value" semantics of L variables

parent 1b9d6508
No related branches found
No related tags found
No related merge requests found
import cp.Definitions._
object Assuming {
def main(args: Array[String]): Unit = {
for (x <- ((x: Int) => x >= 0 && x < 4).lazyFindAll) {
for (b <- ((b: Boolean) => b && x <= 1).lazyFindAll) {
println("hey!")
}
for (b <- ((b: Boolean) => b && x > 1).lazyFindAll) {
println("ho!")
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment