cryptol/tests/enum/NestedPat1.cry
2024-01-22 15:33:13 -08:00

17 lines
90 B
Plaintext

enum M a = N | J a
f x = case x of
J (a#b) -> a + b
N -> zero