summaryrefslogtreecommitdiff
path: root/lib/ur/list.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2019-02-12 11:05:48 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2019-02-12 11:05:48 -0500
commit62dfceb86ba7dfbabb0fabaf89c9cbc8d08afc32 (patch)
tree74a0bdb21e89ee2a09ac71ee80d377939b63f191 /lib/ur/list.urs
parentb9ddbe0ce5c700fef313788fda5c7ecb82c84638 (diff)
List.mapConcat and mapConcatM
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r--lib/ur/list.urs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs
index 7e3cf205..6df2d5d9 100644
--- a/lib/ur/list.urs
+++ b/lib/ur/list.urs
@@ -20,6 +20,10 @@ val append : a ::: Type -> t a -> t a -> t a
val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b
+val mapConcat : a ::: Type -> b ::: Type -> (a -> t b) -> t a -> t b
+
+val mapConcatM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type -> (a -> m (t b)) -> t a -> m (t b)
+
val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b
val mapi : a ::: Type -> b ::: Type -> (int -> a -> b) -> t a -> t b