diff options
| author | bringert <bringert@cs.chalmers.se> | 2006-03-20 14:46:47 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2006-03-20 14:46:47 +0000 |
| commit | eacb437f437bc79650708af472b7796c7fd041e5 (patch) | |
| tree | 44d21f05cf6ea4f6a52c819488a31521ad6d22d7 /transfer/lib/array.tra | |
| parent | d760ce973896bbfd5e9f62516bb953cfeeabaf1a (diff) | |
Expermintation woth a collections framework for transfer.
Diffstat (limited to 'transfer/lib/array.tra')
| -rw-r--r-- | transfer/lib/array.tra | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/transfer/lib/array.tra b/transfer/lib/array.tra deleted file mode 100644 index e91fe35e7..000000000 --- a/transfer/lib/array.tra +++ /dev/null @@ -1,9 +0,0 @@ -import nat - -data Array : Type -> Nat -> Type where - Empty : (A:Type) -> Array A Zero - Cell : (A:Type) -> (n:Nat) -> A -> Array A n -> Array A (Succ n) - -mapA : (A:Type) -> (B:Type) -> (n:Nat) -> (A -> B) -> Array A n -> Array B n -mapA A B _ f (Empty _) = Empty B -mapA A B (Succ n) f (Cell _ _ x xs) = Cell B n (f x) (mapA A B n f xs) |
