rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/lustre
2019-10-21 10:18:17 +02:00

7 lines
152 B
Plaintext

node count(init: int; reset, event: bool) returns (c: int);
let
c = init -> if reset then init
else if event then pre(c)+1
else pre(c);
tel;