cryptol/tests/parser/pat1.cry
2014-04-17 15:34:25 -07:00

23 lines
280 B
Plaintext

f1 (x,y) = x
f2 (x # y) = x
f3 [x,y,z] = x + y + z
f4 {x = a, y = b } = a
f5 ((x : [8]) # (y : [10])) = x # y : [10]
f6 (x # y : [10]) = x
f7 (x # (y : [10])) = x
/*
if a then b else c : [10]
let {} in a : [10]
case a : [10] of { }
// f (a :# b :: Int) =
(fa,fb) = f6
*/