mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-09 12:45:34 -05:00
Style - small corrections
This commit is contained in:
parent
775f86103e
commit
312901550f
3 changed files with 6 additions and 5 deletions
|
|
@ -74,7 +74,8 @@ val fold_map : ('acc -> 'a -> 'acc * 'b) -> 'acc -> 'a t -> 'acc * 'b t
|
|||
|
||||
val scan_left : ('acc -> 'a -> 'acc) -> 'acc -> 'a t -> 'acc t
|
||||
(** [scan_left f acc a] returns the array
|
||||
[ [|acc; f acc x0; f (f acc a.(0)) a.(1); ...|] ].
|
||||
[ [|acc; f acc x0; f (f acc a.(0)) a.(1); …|] ].
|
||||
|
||||
@since 1.2 *)
|
||||
|
||||
val iter : ('a -> unit) -> 'a t -> unit
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ val bsearch : cmp:('a -> 'a -> int) -> key:'a -> 'a t ->
|
|||
[ `All_lower | `All_bigger | `Just_after of int | `Empty | `At of int ]
|
||||
(** [bsearch ?cmp key arr] finds the index of the object [key] in the array [arr],
|
||||
provided [arr] is {b sorted} using [cmp]. If the array is not sorted,
|
||||
the result is not specified (may @raise Invalid_argument).
|
||||
the result is not specified (may raise Invalid_argument).
|
||||
|
||||
Complexity: [O(log n)] where n is the length of the array
|
||||
(dichotomic search).
|
||||
|
|
|
|||
|
|
@ -106,9 +106,9 @@ val return : ('a, _, _, 'a) format4 -> unit printer
|
|||
(** [return "some_format_string"] takes a argument-less format string
|
||||
and returns a printer actionable by [()].
|
||||
Examples:
|
||||
- [return ",@ "].
|
||||
- [return "@{<Red>and then@}@,"].
|
||||
- [return "@[<v>a@ b@]"].
|
||||
- [return ",@ "]
|
||||
- [return "@{<Red>and then@}@,"]
|
||||
- [return "@[<v>a@ b@]"]
|
||||
|
||||
@since 1.0
|
||||
*)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue