mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 03:35:30 -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
|
||||
|
||||
## 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
|
||||
|
||||
- add `Format.styling`
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
opam-version: "2.0"
|
||||
version: "3.7"
|
||||
version: "3.8"
|
||||
author: "Simon Cruanes"
|
||||
maintainer: "simon.cruanes.2007@m4x.org"
|
||||
synopsis: "A set of advanced datatypes for containers"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
opam-version: "2.0"
|
||||
version: "3.7"
|
||||
version: "3.8"
|
||||
author: "Simon Cruanes"
|
||||
maintainer: "simon.cruanes.2007@m4x.org"
|
||||
license: "BSD-2-Clause"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
opam-version: "2.0"
|
||||
name: "containers"
|
||||
version: "3.7"
|
||||
version: "3.8"
|
||||
author: "Simon Cruanes"
|
||||
maintainer: "simon.cruanes.2007@m4x.org"
|
||||
license: "BSD-2-Clause"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
See https://en.wikipedia.org/wiki/Bencode .
|
||||
|
||||
@since NEXT_RELEASE *)
|
||||
@since 3.8 *)
|
||||
|
||||
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
|
||||
(** [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
|
||||
(** [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
|
||||
(** [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
|
||||
(** [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
|
||||
(** [zip_i seq] zips the index of each element with the element itself.
|
||||
@since NEXT
|
||||
@since 3.8
|
||||
*)
|
||||
|
||||
(** {2 Misc} *)
|
||||
|
|
|
|||
|
|
@ -327,16 +327,16 @@ val equal_caseless : string -> string -> bool
|
|||
|
||||
val to_hex : string -> string
|
||||
(** Convert a string with arbitrary content into a hexadecimal string.
|
||||
@since NEXT_RELEASE *)
|
||||
@since 3.8 *)
|
||||
|
||||
val of_hex : string -> string option
|
||||
(** Convert a string in hex into a string with arbitrary content.
|
||||
@since NEXT_RELEASE *)
|
||||
@since 3.8 *)
|
||||
|
||||
val of_hex_exn : string -> string
|
||||
(** Same as {!of_hex} but fails harder.
|
||||
@raise Invalid_argument if the input is not valid hex.
|
||||
@since NEXT_RELEASE *)
|
||||
@since 3.8 *)
|
||||
|
||||
(** {2 Finding}
|
||||
|
||||
|
|
|
|||
|
|
@ -356,16 +356,16 @@ val equal_caseless : string -> string -> bool
|
|||
|
||||
val to_hex : string -> string
|
||||
(** Convert a string with arbitrary content into a hexadecimal string.
|
||||
@since NEXT_RELEASE *)
|
||||
@since 3.8 *)
|
||||
|
||||
val of_hex : string -> string option
|
||||
(** Convert a string in hex into a string with arbitrary content.
|
||||
@since NEXT_RELEASE *)
|
||||
@since 3.8 *)
|
||||
|
||||
val of_hex_exn : string -> string
|
||||
(** Same as {!of_hex} but fails harder.
|
||||
@raise Invalid_argument if the input is not valid hex.
|
||||
@since NEXT_RELEASE *)
|
||||
@since 3.8 *)
|
||||
|
||||
(** {2 Finding}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue