added Bat{Set,Map,Splay}.any and fixed Bat{Map,Splay}.choose
751
(Cedric Cellier)
added BatList.favg and faster BatList.fsum
746
(Gabriel Scherer, Francois Berenger)
install .cmt and .cmti files
740
(Francois Berenger, Gabriel Scherer)
BatMap: added find_default
730
(Francois Berenger)
added scripts/test_install.sh
743
(Francois Berenger)
BatHashtbl: added {to|of}_list, bindings
728
(Francois Berenger, Thibault Suzanne)
added {BatList|BatArray}.shuffle
702, #707
(Francois Berenger, Gabriel Scherer)
Clarification and improvements to the documentation
682, #685, #693
(Florian Angeletti, Johannes Kloos, Michael Färber)
make LazyList.split_at
lazy:
split_at : int -> 'a t -> 'a t * 'a t
would previously eagerly force the prefix of the list
and only be lazy in its second returned value.
694
(Michael Färber, Gabriel Scherer, Thibault Suzanne)
Add List.{map2i,iter2i}
696
(Thibault Suzanne)
Added Result.{map,map_both}
705
(Ifaz Kabir)
Add {BatSet,BatMap}.{Int,Int32,Int64,Nativeint,Float,Char,String} as
common instantions of the respective Make
functor.
709, #712
(Thibault Suzanne, François Bérenger)
BatString: add chop : ?l:int -> ?r:int -> string -> string
714, #716
(Gabriel Scherer, request by François Bérenger)
BatSet: make to_array
allocate the resulting array at first
instead of using Dynarray (faster, uses less memory).
724
(Thibault Suzanne)
BatList: add fold_left_map : ('a -> 'b -> 'a * 'c) -> 'a -> 'b list -> 'a * 'c list
734
(Thibault Suzanne, review by Gabriel Scherer, request by Oscar Gauthier)
add BatList.frange : float -> [< `To | `Downto ] -> float -> int -> float list
frange 0. `To 1. 3
is [0.; 0.5; 1.]
.
745
(François Bérenger)
Batteries 2.5.3 synchronizes library functions with OCaml 4.04+beta2,
and will hopefully be an extension of the upcoming OCaml 4.04 release.
Batteries 2.5.1 and 2.5.2 fix a silly packaging bug in Batteries 2.5.0.
Batteries 2.5.0 is a minor release whose main change is that it is
compatible with the newly released OCaml 4.03.
Note that Batteries 2.5.0 is compatible with older OCaml releases as
well, and provides back-ported versions of most standard library
functions made available in 4.03 only. For example,
BatString.uppercase_ascii is usable under all OCaml versions.
If the documentation of a Batteries function says
@since 2.5.0
then it is available under all supported OCaml version (3.12.1 and up).
If it says
@since 2.5.0 and OCaml 4.03.0
then it is only available under OCaml 4.03.0.