Open JoshOrndorff opened 5 years ago
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 } }
dckc showed how to encode select. This will solve the patience game that I couldn't figure out when writing the tutorial.