Skip to content

Commit

Permalink
2.3.2 became 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois BERENGER committed Nov 4, 2015
1 parent fbd22d0 commit dd0f538
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/batMap.mli
Expand Up @@ -447,7 +447,7 @@ val at_rank_exn: int -> ('key, 'a) t -> ('key * 'a)
associated value).
@raise Not_found if [m = empty].
@raise Invalid_argument error_message if [i < 0 || i >= cardinal m]
@since 2.3.2 *)
@since 2.4 *)

val filterv: ('a -> bool) -> ('key, 'a) t -> ('key, 'a) t
(**[filterv f m] returns a map where only the values [a] of [m]
Expand Down Expand Up @@ -743,7 +743,7 @@ module PMap : sig
associated value).
@raise Not_found if [m = empty].
@raise Invalid_argument error_message if [i < 0 || i >= cardinal m]
@since 2.3.2 *)
@since 2.4 *)

val filterv: ('a -> bool) -> ('key, 'a) t -> ('key, 'a) t
(**[filterv f m] returns a map where only the values [a] of [m]
Expand Down
6 changes: 3 additions & 3 deletions src/batQueue.mli
Expand Up @@ -88,23 +88,23 @@ val filter : ('a -> bool) -> 'a t -> 'a t
(** [filter p q] returns a new queue that contain the elements of [q]
that satisfy the predicate [p], in the same order.
@since 2.3.2
@since 2.4
*)

val filter_map : ('a -> 'b option) -> 'a t -> 'b t
(** [filter_map f q] applies [f] to the elements [a0,a1..an] of [q] in order,
and returns the queue of the elements [bi] such that [f ai = Some bi],
in the corresponding order.
@since 2.3.2
@since 2.4
*)

val filter_inplace : ('a -> bool) -> 'a t -> unit
(** [filter_inplace p q] removes all the elements of the queue [q] that
don't satisfy the predicate [p]. The order of the elements
in the queue is preserved.
@since 2.3.2
@since 2.4
*)

val fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b
Expand Down
32 changes: 16 additions & 16 deletions src/batSet.mli
Expand Up @@ -88,7 +88,7 @@ sig
[update] is faster when [x] compares equal to [y] according
to the comparison function used by your set.
@raise Not_found if [x] is not in [s].
@since 2.3.2 *)
@since 2.4 *)

val union: t -> t -> t
(** Set union. *)
Expand Down Expand Up @@ -134,7 +134,7 @@ sig
(the [0]-th element being the smallest element of [s]).
@raise Not_found if [s = empty].
@raise Invalid_argument error_message if [i < 0 || i >= cardinal s]
@since 2.3.2 *)
@since 2.4 *)

val map: (elt -> elt) -> t -> t
(** [map f x] creates a new set with elements [f a0],
Expand Down Expand Up @@ -217,7 +217,7 @@ sig

val to_array: t -> elt array
(** Same as [to_list] but with an array instead of a list.
@since 2.3.2 *)
@since 2.4 *)

val min_elt: t -> elt
(** Return the smallest element of the given set
Expand All @@ -233,7 +233,7 @@ sig
[let mini = min_elt s in (mini, remove mini s)]
@raise Not_found if the set is empty.
@since 2.3.2 *)
@since 2.4 *)

val pop_max: t -> elt * t
(** Returns the biggest element of the given set
Expand All @@ -243,7 +243,7 @@ sig
[let maxi = max_elt s in (maxi, remove maxi s)]
@raise Not_found if the set is empty.
@since 2.3.2 *)
@since 2.4 *)

val max_elt: t -> elt
(** Same as {!Set.S.min_elt}, but returns the largest element of the
Expand Down Expand Up @@ -281,7 +281,7 @@ sig
val of_array: elt array -> t
(** builds a set from the given array.
@since 2.3.2
@since 2.4
*)


Expand Down Expand Up @@ -429,7 +429,7 @@ val update: 'a -> 'a -> 'a t -> 'a t
[update] is faster when [x] compares equal to [y] according
to the comparison function used by your set.
@raise Not_found if [x] is not in [s].
@since 2.3.2 *)
@since 2.4 *)

val union: 'a t -> 'a t -> 'a t
(** [union s t] returns the union of [s] and [t] - the set containing
Expand Down Expand Up @@ -478,7 +478,7 @@ val at_rank_exn: int -> 'a t -> 'a
(the [0]-th element being the smallest element of [s]).
@raise Not_found if [s = empty].
@raise Invalid_argument error_message if [i < 0 || i >= cardinal s]
@since 2.3.2 *)
@since 2.4 *)

val map: ('a -> 'b) -> 'a t -> 'b t
(** [map f x] creates a new set with elements [f a0],
Expand Down Expand Up @@ -569,7 +569,7 @@ val to_list: 'a t -> 'a list

val to_array: 'a t -> 'a array
(** Same as [to_list] but with an array instead of a list.
@since 2.3.2 *)
@since 2.4 *)

val min_elt : 'a t -> 'a
(** returns the smallest element of the set.
Expand All @@ -583,7 +583,7 @@ val pop_min: 'a t -> 'a * 'a t
[let mini = min_elt s in (mini, remove mini s)]
@raise Not_found if the set is empty.
@since 2.3.2 *)
@since 2.4 *)

val pop_max: 'a t -> 'a * 'a t
(** Returns the biggest element of the given set
Expand All @@ -593,7 +593,7 @@ val pop_max: 'a t -> 'a * 'a t
[let maxi = max_elt s in (maxi, remove maxi s)]
@raise Not_found if the set is empty.
@since 2.3.2 *)
@since 2.4 *)

val max_elt : 'a t -> 'a
(** returns the largest element of the set.
Expand Down Expand Up @@ -721,7 +721,7 @@ module PSet : sig
[update] is faster when [x] compares equal to [y] according
to the comparison function used by your set.
@raise Not_found if [x] is not in [s].
@since 2.3.2 *)
@since 2.4 *)

val union: 'a t -> 'a t -> 'a t
(** [union s t] returns the union of [s] and [t] - the set containing
Expand Down Expand Up @@ -769,7 +769,7 @@ module PSet : sig
(the [0]-th element being the smallest element of [s]).
@raise Not_found if [s = empty].
@raise Invalid_argument error_message if [i < 0 || i >= cardinal s]
@since 2.3.2 *)
@since 2.4 *)

(* under-specified; either give a 'b comparison,
or keep ('a -> 'a) (preferred choice) *)
Expand Down Expand Up @@ -855,7 +855,7 @@ module PSet : sig

val to_array: 'a t -> 'a array
(** Same as [to_list] but with an array instead of a list.
@since 2.3.2 *)
@since 2.4 *)

val min_elt : 'a t -> 'a
(** returns the smallest element of the set.
Expand All @@ -869,7 +869,7 @@ module PSet : sig
[let mini = min_elt s in (mini, remove mini s)]
@raise Not_found if the set is empty.
@since 2.3.2 *)
@since 2.4 *)

val pop_max: 'a t -> 'a * 'a t
(** Returns the biggest element of the given set
Expand All @@ -879,7 +879,7 @@ module PSet : sig
[let maxi = max_elt s in (maxi, remove maxi s)]
@raise Not_found if the set is empty.
@since 2.3.2 *)
@since 2.4 *)

val max_elt : 'a t -> 'a
(** returns the largest element of the set.
Expand Down
2 changes: 1 addition & 1 deletion src/batUnix.mliv
Expand Up @@ -221,7 +221,7 @@ val run_and_read : string -> process_status * string
(via Unix.system) then return its exit status [stat] and
output string [output] as read from its standard output (which
was redirected to a temporary file).
@since 2.3.2 *)
@since 2.4 *)

val getpid : unit -> int
(** Return the pid of the process. *)
Expand Down

0 comments on commit dd0f538

Please sign in to comment.