mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
more warnings
This commit is contained in:
parent
cea6647c3c
commit
16bea66073
2 changed files with 19 additions and 45 deletions
|
|
@ -27,10 +27,6 @@ val map : f:('a -> 'b) -> 'a t -> 'b t
|
|||
(** [map ~f [a0; a1; …; an]] applies function [f] in turn to [[a0; a1; …; an]].
|
||||
Safe version of {!List.map}. *)
|
||||
|
||||
val (>|=) : 'a t -> ('a -> 'b) -> 'b t
|
||||
(** [l >|= f] is the infix version of [map] with reversed arguments.
|
||||
@since 0.5 *)
|
||||
|
||||
val cons : 'a -> 'a t -> 'a t
|
||||
(** [cons x l] is [x::l].
|
||||
@since 0.12 *)
|
||||
|
|
@ -49,10 +45,6 @@ val cons_maybe : 'a option -> 'a t -> 'a t
|
|||
[cons_maybe None l] is [l].
|
||||
@since 0.13 *)
|
||||
|
||||
val (@) : 'a t -> 'a t -> 'a t
|
||||
(** [l1 @ l2] is like [append l1 l2].
|
||||
Concatenate the two lists [l1] and [l2]. *)
|
||||
|
||||
val filter : f:('a -> bool) -> 'a t -> 'a t
|
||||
(** [filter ~f l] returns all the elements of the list [l]
|
||||
that satisfy the predicate [f]. The order of the elements
|
||||
|
|
@ -379,18 +371,9 @@ val mguard : bool -> unit t
|
|||
]}
|
||||
@since 3.1 *)
|
||||
|
||||
val (<*>) : ('a -> 'b) t -> 'a t -> 'b t
|
||||
(** [funs <*> l] is [product (fun f x -> f x) funs l]. *)
|
||||
|
||||
val (<$>) : ('a -> 'b) -> 'a t -> 'b t
|
||||
(** [(<$>)] is [map]. *)
|
||||
|
||||
val return : 'a -> 'a t
|
||||
(** [return x] is [x]. *)
|
||||
|
||||
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
|
||||
(** [l >>= f] is [flat_map f l]. *)
|
||||
|
||||
val take : int -> 'a t -> 'a t
|
||||
(** [take n l] takes the [n] first elements of the list [l], drop the rest. *)
|
||||
|
||||
|
|
@ -691,15 +674,6 @@ val range' : int -> int -> int t
|
|||
(** [range' i j] is like {!range} but the second bound [j] is excluded.
|
||||
For instance [range' 0 5 = [0;1;2;3;4]]. *)
|
||||
|
||||
val (--) : int -> int -> int t
|
||||
(** [i -- j] is the list of integers from [i] to [j] included.
|
||||
Infix alias for [range]. *)
|
||||
|
||||
val (--^) : int -> int -> int t
|
||||
(** [i --^ j] is the list of integers from [i] to [j] excluded.
|
||||
Infix alias for [range'].
|
||||
@since 0.17 *)
|
||||
|
||||
val replicate : int -> 'a -> 'a t
|
||||
(** [replicate n x] replicates the given element [x] [n] times. *)
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
(public_name containers)
|
||||
(wrapped false)
|
||||
(modules :standard \ mkshims)
|
||||
(flags :standard -warn-error -a+8 -w -32-67 -safe-string -nolabels -open
|
||||
(flags :standard -warn-error -a+8 -w -32 -safe-string -strict-sequence -nolabels -open
|
||||
CCMonomorphic)
|
||||
(ocamlopt_flags (:include ../flambda.flags))
|
||||
(libraries seq either containers.monomorphic))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue