raz / conform / err / MatchIntTwice.raz

10 lines · 146 B · raw · history · last change 2a226448

1module MatchIntTwice;
2proc f(n: I64);
3begin
4 match n of
5 | 1 .. 5: n := 0;
6 | 7, 5: n := 1;
7 | else:
8 end;
9end;
10end MatchIntTwice.