rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/lustre

7 lines
152 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
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;