mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
doc: clarify CCOpt.filter
This commit is contained in:
parent
0de515b94b
commit
0a54024143
1 changed files with 2 additions and 2 deletions
|
|
@ -60,8 +60,8 @@ val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
|
||||||
Fold on 0 or 1 element. *)
|
Fold on 0 or 1 element. *)
|
||||||
|
|
||||||
val filter : ('a -> bool) -> 'a t -> 'a t
|
val filter : ('a -> bool) -> 'a t -> 'a t
|
||||||
(** [filter f o] returns [Some x] if [f (Some x)] is [true],
|
(** [filter f o] returns [Some x] if [o] is [Some x] and [f x] is [true],
|
||||||
or [None] if [f (Some x)] is [false] or if [o] is [None].
|
or [None] if [f x] is [false] or if [o] is [None].
|
||||||
Filter on 0 or 1 element.
|
Filter on 0 or 1 element.
|
||||||
@since 0.5 *)
|
@since 0.5 *)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue