mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-15 23:36:01 -05:00
Tweaks
This commit is contained in:
parent
a6d1ee2667
commit
702ff20ca9
3 changed files with 3 additions and 3 deletions
|
|
@ -126,7 +126,7 @@ val lookup_exn : cmp:'a ord -> 'a -> 'a t -> int
|
|||
val bsearch : cmp:('a -> 'a -> int) -> 'a -> 'a t ->
|
||||
[ `All_lower | `All_bigger | `Just_after of int | `Empty | `At of int ]
|
||||
(** [bsearch ~cmp key a] finds the index of the object [key] in the array [a],
|
||||
provided [a] is {b sorted} using [~cmp]. If the array is not sorted,
|
||||
provided [a] is {b sorted} using [cmp]. If the array is not sorted,
|
||||
the result is not specified (may raise Invalid_argument).
|
||||
|
||||
Complexity: [O(log n)] where n is the length of the array [a]
|
||||
|
|
|
|||
|
|
@ -746,7 +746,7 @@ val random_sequence : 'a random_gen t -> 'a t random_gen
|
|||
val to_string : ?start:string -> ?stop:string -> ?sep:string ->
|
||||
('a -> string) -> 'a t -> string
|
||||
(** [to_string ?start ?stop ?sep item_to_string l] prints [l] to a string using
|
||||
[?sep] as a separator between elements of [l].
|
||||
[sep] as a separator between elements of [l].
|
||||
@since 2.7 *)
|
||||
|
||||
val to_iter : 'a t -> 'a iter
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue