summaryrefslogtreecommitdiff
path: root/demo/list.urs
diff options
context:
space:
mode:
Diffstat (limited to 'demo/list.urs')
-rw-r--r--demo/list.urs5
1 files changed, 5 insertions, 0 deletions
diff --git a/demo/list.urs b/demo/list.urs
new file mode 100644
index 0000000..e09f511
--- /dev/null
+++ b/demo/list.urs
@@ -0,0 +1,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