1
0
forked from GitHub/gf-core

Added aggregation example.

This commit is contained in:
bringert
2005-12-05 16:45:11 +00:00
parent 747271941a
commit 7c24fcb38f
6 changed files with 150 additions and 0 deletions

View File

@@ -9,3 +9,13 @@ fst _ _ p = case p of Pair _ _ x _ -> x
snd : (A:Type) -> (B:Type) -> Pair A B -> B
snd _ _ p = case p of Pair _ _ x _ -> x
{-
syntax:
(x1,...,xn) => { p1 = e1; ... ; pn = en }
where n >= 2 and x1,...,xn are expressions or patterns
-}