Skip to content
Snippets Groups Projects
Commit e39edd8a authored by Allan Blanchard's avatar Allan Blanchard Committed by Loïc Correnson
Browse files

[lib] doc for bags

parent 0d1c71e7
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,10 @@ val fold_right : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b ...@@ -45,6 +45,10 @@ val fold_right : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val find : ('a -> bool) -> 'a t -> 'a val find : ('a -> bool) -> 'a t -> 'a
val find_opt : ('a -> bool) -> 'a t -> 'a option val find_opt : ('a -> bool) -> 'a t -> 'a option
val find_map : ('a -> 'b option) -> 'a t -> 'b option val find_map : ('a -> 'b option) -> 'a t -> 'b option
(** [find_map f b]: finds the first element [x] of the bag such
that [f x] returns [Some y], and returns [Some y]. If no such
element exists, returns None.
*)
val exists : ('a -> bool) -> 'a t -> bool val exists : ('a -> bool) -> 'a t -> bool
val for_all : ('a -> bool) -> 'a t -> bool val for_all : ('a -> bool) -> 'a t -> bool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment