diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-06-06 14:09:30 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-06-06 14:09:30 -0400 |
commit | 3ad616e1188527cfd92bf322d5884fa633d40208 (patch) | |
tree | 1d3da14055d91262a0e36315573406b564790fdc /lib/ur/list.urs | |
parent | 07f80839011b33db760cdac421ccea6226b07111 (diff) |
List library additions; fix another substructure unification bug
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 92589508..1b80a9d3 100644 --- a/lib/ur/list.urs +++ b/lib/ur/list.urs @@ -26,3 +26,7 @@ val exists : a ::: Type -> (a -> bool) -> t a -> bool val foldlMap : a ::: Type -> b ::: Type -> c ::: Type -> (a -> b -> c * b) -> b -> t a -> t c * b + +val assoc : a ::: Type -> b ::: Type -> eq a -> a -> t (a * b) -> option b + +val search : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> option b |