[Ur] how to use conditions in monads?

Gergely Buday gbuday at gmail.com
Fri Sep 2 09:01:35 EDT 2011


Hi there,

what is a no-operation idiom for Ur/Web that I could put into an else
clause in a transaction monad?

stored <- get store;
input <- get counter;
if (stored <> input)
  then set var value
  else <nop>
sleep 100;

- Gergely



More information about the Ur mailing list