mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-08 12:15:32 -05:00
prepare for 3.8
This commit is contained in:
parent
259edb965b
commit
75b498a433
10 changed files with 24 additions and 13 deletions
11
CHANGELOG.md
11
CHANGELOG.md
|
|
@ -1,5 +1,16 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 3.8
|
||||||
|
|
||||||
|
- add `Containers_bencode` for lightweight (de)ser
|
||||||
|
- perf(CCHash): improve a bit commutative hashing of arrays/lists
|
||||||
|
- perf(CCHash): only hash prefix of string/bytes
|
||||||
|
- feat(CCList): Add `Assoc.{keys,values,map_values}`
|
||||||
|
- feat(CCArray): add `CCArray.map_inplace`
|
||||||
|
- add `CCString.{to_hex,of_hex}`
|
||||||
|
|
||||||
|
- fix(Atomic): prevent race conditions under flambda, for now
|
||||||
|
|
||||||
## 3.7
|
## 3.7
|
||||||
|
|
||||||
- add `Format.styling`
|
- add `Format.styling`
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
version: "3.7"
|
version: "3.8"
|
||||||
author: "Simon Cruanes"
|
author: "Simon Cruanes"
|
||||||
maintainer: "simon.cruanes.2007@m4x.org"
|
maintainer: "simon.cruanes.2007@m4x.org"
|
||||||
synopsis: "A set of advanced datatypes for containers"
|
synopsis: "A set of advanced datatypes for containers"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
version: "3.7"
|
version: "3.8"
|
||||||
author: "Simon Cruanes"
|
author: "Simon Cruanes"
|
||||||
maintainer: "simon.cruanes.2007@m4x.org"
|
maintainer: "simon.cruanes.2007@m4x.org"
|
||||||
license: "BSD-2-Clause"
|
license: "BSD-2-Clause"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
name: "containers"
|
name: "containers"
|
||||||
version: "3.7"
|
version: "3.8"
|
||||||
author: "Simon Cruanes"
|
author: "Simon Cruanes"
|
||||||
maintainer: "simon.cruanes.2007@m4x.org"
|
maintainer: "simon.cruanes.2007@m4x.org"
|
||||||
license: "BSD-2-Clause"
|
license: "BSD-2-Clause"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
See https://en.wikipedia.org/wiki/Bencode .
|
See https://en.wikipedia.org/wiki/Bencode .
|
||||||
|
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
module Str_map : module type of Map.Make(String)
|
module Str_map : module type of Map.Make(String)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ val get_safe : 'a t -> int -> 'a option
|
||||||
|
|
||||||
val map_inplace : ('a -> 'a) -> 'a t -> unit
|
val map_inplace : ('a -> 'a) -> 'a t -> unit
|
||||||
(** [map_inplace f a] replace all elements of [a] by its image by [f].
|
(** [map_inplace f a] replace all elements of [a] by its image by [f].
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
|
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
|
||||||
(** [fold f init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
|
(** [fold f init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ val get_safe : 'a t -> int -> 'a option
|
||||||
|
|
||||||
val map_inplace : f:('a -> 'a) -> 'a t -> unit
|
val map_inplace : f:('a -> 'a) -> 'a t -> unit
|
||||||
(** [map_inplace ~f a] replace all elements of [a] by its image by [f].
|
(** [map_inplace ~f a] replace all elements of [a] by its image by [f].
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
val fold : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a
|
val fold : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a
|
||||||
(** [fold ~f ~init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
|
(** [fold ~f ~init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ val unzip : ('a * 'b) t -> 'a t * 'b t
|
||||||
|
|
||||||
val zip_i : 'a t -> (int * 'a) t
|
val zip_i : 'a t -> (int * 'a) t
|
||||||
(** [zip_i seq] zips the index of each element with the element itself.
|
(** [zip_i seq] zips the index of each element with the element itself.
|
||||||
@since NEXT
|
@since 3.8
|
||||||
*)
|
*)
|
||||||
|
|
||||||
(** {2 Misc} *)
|
(** {2 Misc} *)
|
||||||
|
|
|
||||||
|
|
@ -327,16 +327,16 @@ val equal_caseless : string -> string -> bool
|
||||||
|
|
||||||
val to_hex : string -> string
|
val to_hex : string -> string
|
||||||
(** Convert a string with arbitrary content into a hexadecimal string.
|
(** Convert a string with arbitrary content into a hexadecimal string.
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
val of_hex : string -> string option
|
val of_hex : string -> string option
|
||||||
(** Convert a string in hex into a string with arbitrary content.
|
(** Convert a string in hex into a string with arbitrary content.
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
val of_hex_exn : string -> string
|
val of_hex_exn : string -> string
|
||||||
(** Same as {!of_hex} but fails harder.
|
(** Same as {!of_hex} but fails harder.
|
||||||
@raise Invalid_argument if the input is not valid hex.
|
@raise Invalid_argument if the input is not valid hex.
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
(** {2 Finding}
|
(** {2 Finding}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -356,16 +356,16 @@ val equal_caseless : string -> string -> bool
|
||||||
|
|
||||||
val to_hex : string -> string
|
val to_hex : string -> string
|
||||||
(** Convert a string with arbitrary content into a hexadecimal string.
|
(** Convert a string with arbitrary content into a hexadecimal string.
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
val of_hex : string -> string option
|
val of_hex : string -> string option
|
||||||
(** Convert a string in hex into a string with arbitrary content.
|
(** Convert a string in hex into a string with arbitrary content.
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
val of_hex_exn : string -> string
|
val of_hex_exn : string -> string
|
||||||
(** Same as {!of_hex} but fails harder.
|
(** Same as {!of_hex} but fails harder.
|
||||||
@raise Invalid_argument if the input is not valid hex.
|
@raise Invalid_argument if the input is not valid hex.
|
||||||
@since NEXT_RELEASE *)
|
@since 3.8 *)
|
||||||
|
|
||||||
(** {2 Finding}
|
(** {2 Finding}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue