1
0
forked from GitHub/gf-core

Transfer: Changed transfer program file extension from .tr to .tra to avoid collision with Troff file extension.

This commit is contained in:
bringert
2005-12-06 16:33:40 +00:00
parent 099e5068d7
commit 900a8f1142
18 changed files with 12 additions and 12 deletions

9
transfer/lib/array.tra Normal file
View File

@@ -0,0 +1,9 @@
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)