include Core_kernel__.Core_listThis module extends the Base List module with bin_io and quickcheck
include sig ... endval typerep_of_t : 'a Typerep_lib.Std.Typerep.t ‑> 'a t Typerep_lib.Std.Typerep.tval typename_of_t : 'a Typerep_lib.Std.Typename.t ‑> 'a t Typerep_lib.Std.Typename.tval bin_t : 'a Bin_prot.Type_class.t ‑> 'a t Bin_prot.Type_class.tval bin_read_t : 'a Bin_prot.Read.reader ‑> 'a t Bin_prot.Read.readerval __bin_read_t__ : 'a Bin_prot.Read.reader ‑> (int ‑> 'a t) Bin_prot.Read.readerval bin_reader_t : 'a Bin_prot.Type_class.reader ‑> 'a t Bin_prot.Type_class.readerval bin_size_t : 'a Bin_prot.Size.sizer ‑> 'a t Bin_prot.Size.sizerval bin_write_t : 'a Bin_prot.Write.writer ‑> 'a t Bin_prot.Write.writerval bin_writer_t : 'a Bin_prot.Type_class.writer ‑> 'a t Bin_prot.Type_class.writerval bin_shape_t : Bin_prot.Shape.t ‑> Bin_prot.Shape.tmodule Assoc = Core_kernel__.Core_list.Associnclude module type of sig ... end with type a t := a t with module Assoc := Assocval t_of_sexp : (Base__.Sexplib.Sexp.t ‑> 'a) ‑> Base__.Sexplib.Sexp.t ‑> 'a tval sexp_of_t : ('a ‑> Base__.Sexplib.Sexp.t) ‑> 'a t ‑> Base__.Sexplib.Sexp.tval hash_fold_t : (Base__.Ppx_hash_lib.Std.Hash.state ‑> 'a ‑> Base__.Ppx_hash_lib.Std.Hash.state) ‑> Base__.Ppx_hash_lib.Std.Hash.state ‑> 'a t ‑> Base__.Ppx_hash_lib.Std.Hash.stateval mem : 'a t ‑> 'a ‑> equal:('a ‑> 'a ‑> bool) ‑> boolval length : 'a t ‑> intval is_empty : 'a t ‑> boolval iter : 'a t ‑> f:('a ‑> unit) ‑> unitval fold : 'a t ‑> init:'accum ‑> f:('accum ‑> 'a ‑> 'accum) ‑> 'accumval fold_result : 'a t ‑> init:'accum ‑> f:('accum ‑> 'a ‑> ('accum, 'e) Base.Result.t) ‑> ('accum, 'e) Base.Result.tval fold_until : 'a t ‑> init:'accum ‑> f:('accum ‑> 'a ‑> ('accum, 'stop) Base.Container_intf.Continue_or_stop.t) ‑> ('accum, 'stop) Base.Container_intf.Finished_or_stopped_early.tval exists : 'a t ‑> f:('a ‑> bool) ‑> boolval for_all : 'a t ‑> f:('a ‑> bool) ‑> boolval sum : (module Base.Commutative_group.S with type t = 'sum) ‑> 'a t ‑> f:('a ‑> 'sum) ‑> 'sumval find : 'a t ‑> f:('a ‑> bool) ‑> 'a optionval find_map : 'a t ‑> f:('a ‑> 'b option) ‑> 'b optionval to_list : 'a t ‑> 'a listval to_array : 'a t ‑> 'a arrayval min_elt : 'a t ‑> cmp:('a ‑> 'a ‑> int) ‑> 'a optionval max_elt : 'a t ‑> cmp:('a ‑> 'a ‑> int) ‑> 'a optionmodule Monad_infix = Base__List.Monad_infixval return : 'a ‑> 'a tmodule Let_syntax = Base__List.Let_syntaxval nth : 'a t ‑> int ‑> 'a optionval nth_exn : 'a t ‑> int ‑> 'aval fold_left : 'a t ‑> init:'b ‑> f:('b ‑> 'a ‑> 'b) ‑> 'bval iter2 : 'a t ‑> 'b t ‑> f:('a ‑> 'b ‑> unit) ‑> unit Or_unequal_lengths.tval rev_map2 : 'a t ‑> 'b t ‑> f:('a ‑> 'b ‑> 'c) ‑> 'c t Or_unequal_lengths.tval fold2 : 'a t ‑> 'b t ‑> init:'c ‑> f:('c ‑> 'a ‑> 'b ‑> 'c) ‑> 'c Or_unequal_lengths.tval for_alli : 'a t ‑> f:(int ‑> 'a ‑> bool) ‑> boolval for_all2 : 'a t ‑> 'b t ‑> f:('a ‑> 'b ‑> bool) ‑> bool Or_unequal_lengths.tval existsi : 'a t ‑> f:(int ‑> 'a ‑> bool) ‑> boolval exists2 : 'a t ‑> 'b t ‑> f:('a ‑> 'b ‑> bool) ‑> bool Or_unequal_lengths.tval hd : 'a t ‑> 'a optionval hd_exn : 'a t ‑> 'aval findi : 'a t ‑> f:(int ‑> 'a ‑> bool) ‑> (int * 'a) optionval find_exn : 'a t ‑> f:('a ‑> bool) ‑> 'aval find_map_exn : 'a t ‑> f:('a ‑> 'b option) ‑> 'bval find_mapi : 'a t ‑> f:(int ‑> 'a ‑> 'b option) ‑> 'b optionval find_mapi_exn : 'a t ‑> f:(int ‑> 'a ‑> 'b option) ‑> 'bval map2 : 'a t ‑> 'b t ‑> f:('a ‑> 'b ‑> 'c) ‑> 'c t Or_unequal_lengths.tval rev_map3 : 'a t ‑> 'b t ‑> 'c t ‑> f:('a ‑> 'b ‑> 'c ‑> 'd) ‑> 'd t Or_unequal_lengths.tval map3 : 'a t ‑> 'b t ‑> 'c t ‑> f:('a ‑> 'b ‑> 'c ‑> 'd) ‑> 'd t Or_unequal_lengths.tval fold_right : 'a t ‑> f:('a ‑> 'b ‑> 'b) ‑> init:'b ‑> 'bval iteri : 'a t ‑> f:(int ‑> 'a ‑> unit) ‑> unitval foldi : 'a t ‑> init:'b ‑> f:(int ‑> 'b ‑> 'a ‑> 'b) ‑> 'bval reduce_exn : 'a t ‑> f:('a ‑> 'a ‑> 'a) ‑> 'aval reduce : 'a t ‑> f:('a ‑> 'a ‑> 'a) ‑> 'a optionval reduce_balanced : 'a t ‑> f:('a ‑> 'a ‑> 'a) ‑> 'a optionval reduce_balanced_exn : 'a t ‑> f:('a ‑> 'a ‑> 'a) ‑> 'aval last : 'a t ‑> 'a optionval last_exn : 'a t ‑> 'aval find_consecutive_duplicate : 'a t ‑> equal:('a ‑> 'a ‑> bool) ‑> ('a * 'a) optionval contains_dup : ?compare:('a ‑> 'a ‑> int) ‑> 'a t ‑> boolval find_a_dup : ?compare:('a ‑> 'a ‑> int) ‑> 'a t ‑> 'a optionval find_all_dups : ?compare:('a ‑> 'a ‑> int) ‑> 'a t ‑> 'a listexception Duplicate_found of unit ‑> Base.Sexp.t * stringval exn_if_dup : ?compare:('a ‑> 'a ‑> int) ‑> ?context:string ‑> 'a t ‑> to_sexp:('a ‑> Base.Sexp.t) ‑> unitval count : 'a t ‑> f:('a ‑> bool) ‑> intval counti : 'a t ‑> f:(int ‑> 'a ‑> bool) ‑> intval range : ?stride:int ‑> ?start:[ `exclusive | `inclusive ] ‑> ?stop:[ `exclusive | `inclusive ] ‑> int ‑> int ‑> int tval range' : compare:('a ‑> 'a ‑> int) ‑> stride:('a ‑> 'a) ‑> ?start:[ `exclusive | `inclusive ] ‑> ?stop:[ `exclusive | `inclusive ] ‑> 'a ‑> 'a ‑> 'a tval init : int ‑> f:(int ‑> 'a) ‑> 'a tmodule Assoc = Base__List.Assocval permute : ?random_state:Base.Random.State.t ‑> 'a t ‑> 'a tval random_element : ?random_state:Base.Random.State.t ‑> 'a t ‑> 'a optionval random_element_exn : ?random_state:Base.Random.State.t ‑> 'a t ‑> 'aval is_sorted : 'a t ‑> compare:('a ‑> 'a ‑> int) ‑> boolval is_sorted_strictly : 'a t ‑> compare:('a ‑> 'a ‑> int) ‑> boolmodule Infix = Base__List.Infixval to_string : f:('a ‑> string) ‑> 'a t ‑> stringval gen' : ?length:[ `Exactly of int | `At_least of int | `At_most of int | `Between_inclusive of int * int ] ‑> 'a Core_kernel.Quickcheck.Generator.t ‑> 'a t Core_kernel.Quickcheck.Generator.tQuickcheck generator for lists with additional customization.
List.gen' t produces a generator for arbitrary lists of values from t.
~length:(`Exactly n) produces only lists of length n.~length:(`At_least n) produces only lists of length n or greater.~length:(`At_most n) produces only lists of length n or less.~length:(`Between_inclusive (m,n)) produces only lists of length k such
that m <= k and k <= n.The lists in the output of list t are generated uniquely, so long as the values in
t are generated uniquely.
val gen_permutations : 'a t ‑> 'a t Core_kernel.Quickcheck.Generator.tgen_permutations t generates all permutations of list. If t contains duplicate
values, then gen_permutations t will produce duplicate lists.
val stable_dedup : 'a list ‑> 'a liststable_dedup Same as dedup but maintains the order of the list and doesn't allow
compare function to be specified (otherwise, the implementation in terms of Set.t
would hide a heavyweight functor instantiation at each call).
val stable_dedup_staged : compare:('a ‑> 'a ‑> Core_kernel__.Import.int) ‑> ('a Core_kernel__.Import.list ‑> 'a Core_kernel__.Import.list) Staged.t