diff options
author | 2011-06-27 21:36:32 +0100 | |
---|---|---|
committer | 2011-06-27 21:36:32 +0100 | |
commit | 5b1332cdbcfc6c08d73a45160990348de9e623b4 (patch) | |
tree | baaa835948c7145928d1263ae22b5021dd37eac8 /lib/ur/list.urs | |
parent | ff0dd4f2b85c772b725fe073a8d32ec7e2dff0d7 (diff) |
recToList
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r-- | lib/ur/list.urs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs index 8284510d..dc8fdeba 100644 --- a/lib/ur/list.urs +++ b/lib/ur/list.urs @@ -79,3 +79,7 @@ val replaceNth : a ::: Type -> list a -> int -> a -> list a val assoc : a ::: Type -> b ::: Type -> eq a -> a -> t (a * b) -> option b val assocAdd : a ::: Type -> b ::: Type -> eq a -> a -> b -> t (a * b) -> t (a * b) + +(** Converting records to lists *) + +val recToList : a ::: Type -> r ::: {Unit} -> folder r -> $(mapU a r) -> t a |