summaryrefslogtreecommitdiff
path: root/demo/list.urs
blob: e09f511876d8d2e0a240472187254fb8d1ef7530 (plain)
1
2
3
4
5
datatype list t = Nil | Cons of t * list t

val length : t ::: Type -> list t -> int

val rev : t ::: Type -> list t -> list t