diff options
author | Gabriel Scherer <gabriel.scherer@gmail.com> | 2020-03-14 15:09:30 +0100 |
---|---|---|
committer | Gabriel Scherer <gabriel.scherer@gmail.com> | 2020-03-31 15:01:41 +0200 |
commit | 1cd6e4451f04af4871675d0eecd48b3bac262b67 (patch) | |
tree | 1f60a527a21228e291305210674075e989106f76 /stdlib/moreLabels.mli | |
parent | e10e2bfa992c977572ce9dda82ba22b449f54e81 (diff) | |
download | ocaml-1cd6e4451f04af4871675d0eecd48b3bac262b67.tar.gz |
Map.filter_map and Set.filter_map
Diffstat (limited to 'stdlib/moreLabels.mli')
-rw-r--r-- | stdlib/moreLabels.mli | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stdlib/moreLabels.mli b/stdlib/moreLabels.mli index 08bc0f4d90..eae749c71e 100644 --- a/stdlib/moreLabels.mli +++ b/stdlib/moreLabels.mli @@ -152,6 +152,7 @@ module Map : sig val for_all: f:(key -> 'a -> bool) -> 'a t -> bool val exists: f:(key -> 'a -> bool) -> 'a t -> bool val filter: f:(key -> 'a -> bool) -> 'a t -> 'a t + val filter_map: f:(key -> 'a -> 'b option) -> 'a t -> 'b t val partition: f:(key -> 'a -> bool) -> 'a t -> 'a t * 'a t val cardinal: 'a t -> int val bindings: 'a t -> (key * 'a) list @@ -205,6 +206,7 @@ module Set : sig val for_all : f:(elt -> bool) -> t -> bool val exists : f:(elt -> bool) -> t -> bool val filter : f:(elt -> bool) -> t -> t + val filter_map : f:(elt -> elt option) -> t -> t val partition : f:(elt -> bool) -> t -> t * t val cardinal : t -> int val elements : t -> elt list |