LearnRholangByExample
LearnRholangByExample copied to clipboard
Proper solution to the patience game
dckc showed how to encode select. This will solve the patience game that I couldn't figure out when writing the tutorial.
new once in {
once!(Nil) |
for(pat1 <- n1; _ <- once) { p1 } |
for(pat2 <- n2; _ <- once) { p2 }
}