LearnRholangByExample icon indicating copy to clipboard operation
LearnRholangByExample copied to clipboard

Proper solution to the patience game

Open JoshOrndorff opened this issue 6 years ago • 0 comments

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 }
}

JoshOrndorff avatar Jan 04 '19 22:01 JoshOrndorff