diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-05-19 11:32:12 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-05-19 11:32:12 -0400 |
commit | df475a9256347564d3adc1fafc53c4d93b4e73f7 (patch) | |
tree | 04d2d95798a412261154293e71323e4069718bf6 /lib/ur/list.urs | |
parent | 597f9bd0cee0f60fb7dd23d14c6125f5eb6d3f5d (diff) |
Some standard library additions from Edward Z. Yang
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r-- | lib/ur/list.urs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs index 15204590..b26c9ad9 100644 --- a/lib/ur/list.urs +++ b/lib/ur/list.urs @@ -36,6 +36,8 @@ val mapPartialM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type -> val mapXM : m ::: (Type -> Type) -> monad m -> a ::: Type -> ctx ::: {Unit} -> (a -> m (xml ctx [] [])) -> t a -> m (xml ctx [] []) +val mapXiM : m ::: (Type -> Type) -> monad m -> a ::: Type -> ctx ::: {Unit} -> (int -> a -> m (xml ctx [] [])) -> t a -> m (xml ctx [] []) + val filter : a ::: Type -> (a -> bool) -> t a -> t a val exists : a ::: Type -> (a -> bool) -> t a -> bool |