summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.5.2/lib/rouge/demos/lustre
blob: 789bd580bc781c2ea89ac220f71809dda51a1007 (plain)
1
2
3
4
5
6
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;