cryptol/tests/parser/pat1.cry

23 lines
279 B
Plaintext
Raw Normal View History

2014-04-18 02:34:25 +04:00
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 { }
2016-02-19 21:08:20 +03:00
// f (a :# b :: Int) =
2014-04-18 02:34:25 +04:00
(fa,fb) = f6
*/