`sig
type 'a t = 'a array
val typerep_of_t :
'a Typerep_lib.Std.Typerep.t -> 'a Core_array.t Typerep_lib.Std.Typerep.t
val typename_of_t :
'a Typerep_lib.Std.Typename.t ->
'a Core_array.t Typerep_lib.Std.Typename.t
val binary_search : ('a t, 'a) Binary_searchable_intf.binary_search
val binary_search_segmented :
('a t, 'a) Binary_searchable_intf.binary_search_segmented
val mem : ?equal:('a -> 'a -> bool) -> 'a t -> 'a -> bool
val length : 'a t -> int
val is_empty : 'a t -> bool
val iter : 'a t -> f:('a -> unit) -> unit
val fold : 'a t -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accum
val exists : 'a t -> f:('a -> bool) -> bool
val for_all : 'a t -> f:('a -> bool) -> bool
val count : 'a t -> f:('a -> bool) -> int
val sum :
(module Commutative_group.S with type t = 'sum) ->
'a t -> f:('a -> 'sum) -> 'sum
val find : 'a t -> f:('a -> bool) -> 'a option
val find_map : 'a t -> f:('a -> 'b option) -> 'b option
val to_list : 'a t -> 'a list
val to_array : 'a t -> 'a array
val min_elt : 'a t -> cmp:('a -> 'a -> int) -> 'a option
val max_elt : 'a t -> cmp:('a -> 'a -> int) -> 'a option
val max_length : int
external get : 'a Core_array.t -> int -> 'a = "%array_safe_get"
external set : 'a Core_array.t -> int -> 'a -> unit = "%array_safe_set"
external unsafe_get : 'a Core_array.t -> int -> 'a = "%array_unsafe_get"
external unsafe_set : 'a Core_array.t -> int -> 'a -> unit
= "%array_unsafe_set"
val create : len:int -> 'a -> 'a Core_array.t
val init : int -> f:(int -> 'a) -> 'a Core_array.t
val make_matrix :
dimx:int -> dimy:int -> 'a -> 'a Core_array.t Core_array.t
val append : 'a Core_array.t -> 'a Core_array.t -> 'a Core_array.t
val concat : 'a Core_array.t list -> 'a Core_array.t
val copy : 'a Core_array.t -> 'a Core_array.t
val fill : 'a Core_array.t -> pos:int -> len:int -> 'a -> unit
val blit : ('a t, 'a t) Blit_intf.blit
val blito : ('a t, 'a t) Blit_intf.blito
val unsafe_blit : ('a t, 'a t) Blit_intf.blit
val sub : ('a t, 'a t) Blit_intf.sub
val subo : ('a t, 'a t) Blit_intf.subo
module Int :
sig
type t = int t
val blit : (t, t) Blit_intf.blit
val blito : (t, t) Blit_intf.blito
val sub : (t, t) Blit_intf.sub
val subo : (t, t) Blit_intf.subo
external unsafe_blit :
src:Core_array.t ->
src_pos:int -> dst:Core_array.t -> dst_pos:int -> len:int -> unit
= "core_array_unsafe_int_blit" "noalloc"
val t_of_sexp : Sexplib.Sexp.t -> Core_array.t
val sexp_of_t : Core_array.t -> Sexplib.Sexp.t
val compare : Core_array.t -> Core_array.t -> int
val bin_t : Core_array.t Bin_prot.Type_class.t
val bin_read_t : Core_array.t Bin_prot.Read.reader
val __bin_read_t__ : (int -> Core_array.t) Bin_prot.Read.reader
val bin_reader_t : Core_array.t Bin_prot.Type_class.reader
val bin_size_t : Core_array.t Bin_prot.Size.sizer
val bin_write_t : Core_array.t Bin_prot.Write.writer
val bin_writer_t : Core_array.t Bin_prot.Type_class.writer
end
module Float :
sig
type t = float t
val blit : (t, t) Blit_intf.blit
val blito : (t, t) Blit_intf.blito
val sub : (t, t) Blit_intf.sub
val subo : (t, t) Blit_intf.subo
external unsafe_blit :
src:Core_array.t ->
src_pos:int -> dst:Core_array.t -> dst_pos:int -> len:int -> unit
= "core_array_unsafe_float_blit" "noalloc"
val t_of_sexp : Sexplib.Sexp.t -> Core_array.t
val sexp_of_t : Core_array.t -> Sexplib.Sexp.t
val compare : Core_array.t -> Core_array.t -> int
val bin_t : Core_array.t Bin_prot.Type_class.t
val bin_read_t : Core_array.t Bin_prot.Read.reader
val __bin_read_t__ : (int -> Core_array.t) Bin_prot.Read.reader
val bin_reader_t : Core_array.t Bin_prot.Type_class.reader
val bin_size_t : Core_array.t Bin_prot.Size.sizer
val bin_write_t : Core_array.t Bin_prot.Write.writer
val bin_writer_t : Core_array.t Bin_prot.Type_class.writer
end
val of_list : 'a list -> 'a Core_array.t
val map : f:('a -> 'b) -> 'a Core_array.t -> 'b Core_array.t
val iteri : f:(int -> 'a -> unit) -> 'a Core_array.t -> unit
val mapi : f:(int -> 'a -> 'b) -> 'a Core_array.t -> 'b Core_array.t
val foldi : 'a Core_array.t -> init:'b -> f:(int -> 'b -> 'a -> 'b) -> 'b
val fold_right : 'a Core_array.t -> f:('a -> 'b -> 'b) -> init:'b -> 'b
val sort :
?pos:int -> ?len:int -> 'a Core_array.t -> cmp:('a -> 'a -> int) -> unit
val stable_sort : 'a Core_array.t -> cmp:('a -> 'a -> int) -> unit
val is_sorted : 'a Core_array.t -> cmp:('a -> 'a -> int) -> bool
val is_sorted_strictly : 'a Core_array.t -> cmp:('a -> 'a -> int) -> bool
val concat_map : 'a Core_array.t -> f:('a -> 'b array) -> 'b array
val partition_tf :
'a Core_array.t -> f:('a -> bool) -> 'a Core_array.t * 'a Core_array.t
val partitioni_tf :
'a Core_array.t ->
f:(int -> 'a -> bool) -> 'a Core_array.t * 'a Core_array.t
val cartesian_product :
'a Core_array.t -> 'b Core_array.t -> ('a * 'b) Core_array.t
val normalize : 'a Core_array.t -> int -> int
val slice : 'a Core_array.t -> int -> int -> 'a Core_array.t
val nget : 'a Core_array.t -> int -> 'a
val nset : 'a Core_array.t -> int -> 'a -> unit
val filter_opt : 'a option Core_array.t -> 'a Core_array.t
val filter_map : 'a Core_array.t -> f:('a -> 'b option) -> 'b Core_array.t
val filter_mapi :
'a Core_array.t -> f:(int -> 'a -> 'b option) -> 'b Core_array.t
val iter2_exn :
'a Core_array.t -> 'b Core_array.t -> f:('a -> 'b -> unit) -> unit
val map2_exn :
'a Core_array.t ->
'b Core_array.t -> f:('a -> 'b -> 'c) -> 'c Core_array.t
val fold2_exn :
'a Core_array.t ->
'b Core_array.t -> init:'c -> f:('c -> 'a -> 'b -> 'c) -> 'c
val for_all2_exn :
'a Core_array.t -> 'b Core_array.t -> f:('a -> 'b -> bool) -> bool
val filter : f:('a -> bool) -> 'a Core_array.t -> 'a Core_array.t
val filteri : f:(int -> 'a -> bool) -> 'a Core_array.t -> 'a Core_array.t
val swap : 'a Core_array.t -> int -> int -> unit
val rev_inplace : 'a Core_array.t -> unit
val of_list_rev : 'a list -> 'a Core_array.t
val of_list_map : 'a list -> f:('a -> 'b) -> 'b Core_array.t
val of_list_rev_map : 'a list -> f:('a -> 'b) -> 'b Core_array.t
val replace : 'a Core_array.t -> int -> f:('a -> 'a) -> unit
val replace_all : 'a Core_array.t -> f:('a -> 'a) -> unit
val find_exn : 'a Core_array.t -> f:('a -> bool) -> 'a
val findi : 'a Core_array.t -> f:(int -> 'a -> bool) -> (int * 'a) option
val findi_exn : 'a Core_array.t -> f:(int -> 'a -> bool) -> int * 'a
val find_consecutive_duplicate :
'a Core_array.t -> equal:('a -> 'a -> bool) -> ('a * 'a) option
val reduce : 'a Core_array.t -> f:('a -> 'a -> 'a) -> 'a option
val reduce_exn : 'a Core_array.t -> f:('a -> 'a -> 'a) -> 'a
val permute : ?random_state:Core_random.State.t -> 'a Core_array.t -> unit
val combine : 'a Core_array.t -> 'b Core_array.t -> ('a * 'b) Core_array.t
val split : ('a * 'b) Core_array.t -> 'a Core_array.t * 'b Core_array.t
val sorted_copy :
'a Core_array.t -> cmp:('a -> 'a -> int) -> 'a Core_array.t
val last : 'a Core_array.t -> 'a
val empty : unit -> 'a Core_array.t
val equal :
'a Core_array.t -> 'a Core_array.t -> equal:('a -> 'a -> bool) -> bool
val truncate : 'a Core_array.t -> len:int -> unit
module Infix :
sig val ( <|> ) : 'a Core_array.t -> int * int -> 'a Core_array.t end
val to_sequence : 'a Core_array.t -> 'a Sequence.t
val to_sequence_mutable : 'a Core_array.t -> 'a Sequence.t
module Permissioned :
sig
type ('a, -'perms) t
module Int :
sig
type 'perms t = (int, 'perms) t
val blit :
([> Perms.Export.read ] t, [> Perms.Export.write ] t)
Blit_intf.blit
val blito :
([> Perms.Export.read ] t, [> Perms.Export.write ] t)
Blit_intf.blito
val sub :
([> Perms.Export.read ] t, [< 'a Perms.Export.perms ] t)
Blit_intf.sub
val subo :
([> Perms.Export.read ] t, [< 'a Perms.Export.perms ] t)
Blit_intf.subo
external unsafe_blit :
src:[> Perms.Export.read ] Core_array.Permissioned.t ->
src_pos:int ->
dst:[> Perms.Export.write ] Core_array.Permissioned.t ->
dst_pos:int -> len:int -> unit = "core_array_unsafe_int_blit"
"noalloc"
val t_of_sexp :
(Sexplib.Sexp.t -> 'perms) ->
Sexplib.Sexp.t -> 'perms Core_array.Permissioned.t
val sexp_of_t :
('perms -> Sexplib.Sexp.t) ->
'perms Core_array.Permissioned.t -> Sexplib.Sexp.t
val compare :
('perms -> 'perms -> int) ->
'perms Core_array.Permissioned.t ->
'perms Core_array.Permissioned.t -> int
val bin_t :
'perms Bin_prot.Type_class.t ->
'perms Core_array.Permissioned.t Bin_prot.Type_class.t
val bin_read_t :
'perms Bin_prot.Read.reader ->
'perms Core_array.Permissioned.t Bin_prot.Read.reader
val __bin_read_t__ :
'perms Bin_prot.Read.reader ->
(int -> 'perms Core_array.Permissioned.t) Bin_prot.Read.reader
val bin_reader_t :
'perms Bin_prot.Type_class.reader ->
'perms Core_array.Permissioned.t Bin_prot.Type_class.reader
val bin_size_t :
'perms Bin_prot.Size.sizer ->
'perms Core_array.Permissioned.t Bin_prot.Size.sizer
val bin_write_t :
'perms Bin_prot.Write.writer ->
'perms Core_array.Permissioned.t Bin_prot.Write.writer
val bin_writer_t :
'perms Bin_prot.Type_class.writer ->
'perms Core_array.Permissioned.t Bin_prot.Type_class.writer
end
module Float :
sig
type 'perms t = (float, 'perms) t
val blit :
([> Perms.Export.read ] t, [> Perms.Export.write ] t)
Blit_intf.blit
val blito :
([> Perms.Export.read ] t, [> Perms.Export.write ] t)
Blit_intf.blito
val sub :
([> Perms.Export.read ] t, [< 'a Perms.Export.perms ] t)
Blit_intf.sub
val subo :
([> Perms.Export.read ] t, [< 'a Perms.Export.perms ] t)
Blit_intf.subo
external unsafe_blit :
src:[> Perms.Export.read ] Core_array.Permissioned.t ->
src_pos:int ->
dst:[> Perms.Export.write ] Core_array.Permissioned.t ->
dst_pos:int -> len:int -> unit = "core_array_unsafe_float_blit"
"noalloc"
val t_of_sexp :
(Sexplib.Sexp.t -> 'perms) ->
Sexplib.Sexp.t -> 'perms Core_array.Permissioned.t
val sexp_of_t :
('perms -> Sexplib.Sexp.t) ->
'perms Core_array.Permissioned.t -> Sexplib.Sexp.t
val compare :
('perms -> 'perms -> int) ->
'perms Core_array.Permissioned.t ->
'perms Core_array.Permissioned.t -> int
val bin_t :
'perms Bin_prot.Type_class.t ->
'perms Core_array.Permissioned.t Bin_prot.Type_class.t
val bin_read_t :
'perms Bin_prot.Read.reader ->
'perms Core_array.Permissioned.t Bin_prot.Read.reader
val __bin_read_t__ :
'perms Bin_prot.Read.reader ->
(int -> 'perms Core_array.Permissioned.t) Bin_prot.Read.reader
val bin_reader_t :
'perms Bin_prot.Type_class.reader ->
'perms Core_array.Permissioned.t Bin_prot.Type_class.reader
val bin_size_t :
'perms Bin_prot.Size.sizer ->
'perms Core_array.Permissioned.t Bin_prot.Size.sizer
val bin_write_t :
'perms Bin_prot.Write.writer ->
'perms Core_array.Permissioned.t Bin_prot.Write.writer
val bin_writer_t :
'perms Bin_prot.Type_class.writer ->
'perms Core_array.Permissioned.t Bin_prot.Type_class.writer
end
val of_array_id :
'a array ->
('a, [< Perms.Export.read_write ]) Core_array.Permissioned.t
val to_array_id :
('a, [> Perms.Export.read_write ]) Core_array.Permissioned.t ->
'a array
val to_sequence_immutable :
('a, [> Perms.Export.immutable ]) Core_array.Permissioned.t ->
'a Sequence.t
val mem :
?equal:('a -> 'a -> bool) ->
('a, [> Perms.Export.read ]) t -> 'a -> bool
val iter : ('a, [> Perms.Export.read ]) t -> f:('a -> unit) -> unit
val fold :
('a, [> Perms.Export.read ]) t ->
init:'accum -> f:('accum -> 'a -> 'accum) -> 'accum
val exists : ('a, [> Perms.Export.read ]) t -> f:('a -> bool) -> bool
val for_all : ('a, [> Perms.Export.read ]) t -> f:('a -> bool) -> bool
val count : ('a, [> Perms.Export.read ]) t -> f:('a -> bool) -> int
val sum :
(module Commutative_group.S with type t = 'sum) ->
('a, [> Perms.Export.read ]) t -> f:('a -> 'sum) -> 'sum
val find :
('a, [> Perms.Export.read ]) t -> f:('a -> bool) -> 'a option
val find_map :
('a, [> Perms.Export.read ]) t -> f:('a -> 'b option) -> 'b option
val to_list : ('a, [> Perms.Export.read ]) t -> 'a list
val to_array : ('a, [> Perms.Export.read ]) t -> 'a array
val min_elt :
('a, [> Perms.Export.read ]) t -> cmp:('a -> 'a -> int) -> 'a option
val max_elt :
('a, [> Perms.Export.read ]) t -> cmp:('a -> 'a -> int) -> 'a option
val blit :
(('a, [> Perms.Export.read ]) t, ('a, [> Perms.Export.write ]) t)
Blit_intf.blit
val blito :
(('a, [> Perms.Export.read ]) t, ('a, [> Perms.Export.write ]) t)
Blit_intf.blito
val unsafe_blit :
(('a, [> Perms.Export.read ]) t, ('a, [> Perms.Export.write ]) t)
Blit_intf.blit
val sub :
(('a, [> Perms.Export.read ]) t, ('a, [< 'b Perms.Export.perms ]) t)
Blit_intf.sub
val subo :
(('a, [> Perms.Export.read ]) t, ('a, [< 'b Perms.Export.perms ]) t)
Blit_intf.subo
val binary_search :
(('a, [> Perms.Export.read ]) t, 'a)
Binary_searchable_intf.binary_search
val binary_search_segmented :
(('a, [> Perms.Export.read ]) t, 'a)
Binary_searchable_intf.binary_search_segmented
val length : ('a, 'b) Core_array.Permissioned.t -> int
val is_empty : ('a, 'b) Core_array.Permissioned.t -> bool
external get :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t -> int -> 'a
= "%array_safe_get"
external set :
('a, [> Perms.Export.write ]) Core_array.Permissioned.t ->
int -> 'a -> unit = "%array_safe_set"
external unsafe_get :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t -> int -> 'a
= "%array_unsafe_get"
external unsafe_set :
('a, [> Perms.Export.write ]) Core_array.Permissioned.t ->
int -> 'a -> unit = "%array_unsafe_set"
val create :
len:int ->
'a -> ('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val init :
int ->
f:(int -> 'a) ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val make_matrix :
dimx:int ->
dimy:int ->
'a ->
(('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t,
[< 'c Perms.Export.perms ])
Core_array.Permissioned.t
val append :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val concat :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t list ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val copy :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val fill :
('a, [> Perms.Export.write ]) Core_array.Permissioned.t ->
pos:int -> len:int -> 'a -> unit
val of_list :
'a list -> ('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val map :
f:('a -> 'b) ->
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val iteri :
f:(int -> 'a -> unit) ->
('a, [> Perms.Export.read ]) Core_array.Permissioned.t -> unit
val mapi :
f:(int -> 'a -> 'b) ->
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val foldi :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
init:'b -> f:(int -> 'b -> 'a -> 'b) -> 'b
val fold_right :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> 'b -> 'b) -> init:'b -> 'b
val sort :
?pos:int ->
?len:int ->
('a, [> Perms.Export.read_write ]) Core_array.Permissioned.t ->
cmp:('a -> 'a -> int) -> unit
val stable_sort :
('a, [> Perms.Export.read_write ]) Core_array.Permissioned.t ->
cmp:('a -> 'a -> int) -> unit
val is_sorted :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
cmp:('a -> 'a -> int) -> bool
val is_sorted_strictly :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
cmp:('a -> 'a -> int) -> bool
val concat_map :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> ('b, [> Perms.Export.read ]) Core_array.Permissioned.t) ->
('b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val partition_tf :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> bool) ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t *
('a, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val partitioni_tf :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:(int -> 'a -> bool) ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t *
('a, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val cartesian_product :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('b, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a * 'b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val normalize : ('a, 'b) Core_array.Permissioned.t -> int -> int
val slice :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
int ->
int -> ('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val nget :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t -> int -> 'a
val nset :
('a, [> Perms.Export.write ]) Core_array.Permissioned.t ->
int -> 'a -> unit
val filter_opt :
('a option, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val filter_map :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> 'b option) ->
('b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val filter_mapi :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:(int -> 'a -> 'b option) ->
('b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val iter2_exn :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('b, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> 'b -> unit) -> unit
val map2_exn :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('b, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> 'b -> 'c) ->
('c, [< 'd Perms.Export.perms ]) Core_array.Permissioned.t
val fold2_exn :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('b, [> Perms.Export.read ]) Core_array.Permissioned.t ->
init:'c -> f:('c -> 'a -> 'b -> 'c) -> 'c
val for_all2_exn :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('b, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> 'b -> bool) -> bool
val filter :
f:('a -> bool) ->
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val filteri :
f:(int -> 'a -> bool) ->
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val swap :
('a, [> Perms.Export.read_write ]) Core_array.Permissioned.t ->
int -> int -> unit
val rev_inplace :
('a, [> Perms.Export.read_write ]) Core_array.Permissioned.t -> unit
val of_list_rev :
'a list -> ('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val of_list_map :
'a list ->
f:('a -> 'b) ->
('b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val of_list_rev_map :
'a list ->
f:('a -> 'b) ->
('b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val replace :
('a, [> Perms.Export.read_write ]) Core_array.Permissioned.t ->
int -> f:('a -> 'a) -> unit
val replace_all :
('a, [> Perms.Export.read_write ]) Core_array.Permissioned.t ->
f:('a -> 'a) -> unit
val find_exn :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> bool) -> 'a
val findi :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:(int -> 'a -> bool) -> (int * 'a) option
val findi_exn :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:(int -> 'a -> bool) -> int * 'a
val find_consecutive_duplicate :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
equal:('a -> 'a -> bool) -> ('a * 'a) option
val reduce :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> 'a -> 'a) -> 'a option
val reduce_exn :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
f:('a -> 'a -> 'a) -> 'a
val permute :
?random_state:Core_random.State.t ->
('a, [> Perms.Export.read_write ]) Core_array.Permissioned.t -> unit
val combine :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('b, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a * 'b, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t
val split :
('a * 'b, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a, [< 'c Perms.Export.perms ]) Core_array.Permissioned.t *
('b, [< 'd Perms.Export.perms ]) Core_array.Permissioned.t
val sorted_copy :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
cmp:('a -> 'a -> int) ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val last : ('a, [> Perms.Export.read ]) Core_array.Permissioned.t -> 'a
val empty :
unit -> ('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
val equal :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
equal:('a -> 'a -> bool) -> bool
val truncate :
('a, [> Perms.Export.write ]) Core_array.Permissioned.t ->
len:int -> unit
module Infix :
sig
val ( <|> ) :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
int * int ->
('a, [< 'b Perms.Export.perms ]) Core_array.Permissioned.t
end
val to_sequence :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
'a Sequence.t
val to_sequence_mutable :
('a, [> Perms.Export.read ]) Core_array.Permissioned.t ->
'a Sequence.t
val t_of_sexp :
(Sexplib.Sexp.t -> 'a) ->
(Sexplib.Sexp.t -> 'perms) ->
Sexplib.Sexp.t -> ('a, 'perms) Core_array.Permissioned.t
val sexp_of_t :
('a -> Sexplib.Sexp.t) ->
('perms -> Sexplib.Sexp.t) ->
('a, 'perms) Core_array.Permissioned.t -> Sexplib.Sexp.t
val compare :
('a -> 'a -> int) ->
('perms -> 'perms -> int) ->
('a, 'perms) Core_array.Permissioned.t ->
('a, 'perms) Core_array.Permissioned.t -> int
val bin_t :
'a Bin_prot.Type_class.t ->
'perms Bin_prot.Type_class.t ->
('a, 'perms) Core_array.Permissioned.t Bin_prot.Type_class.t
val bin_read_t :
'a Bin_prot.Read.reader ->
'perms Bin_prot.Read.reader ->
('a, 'perms) Core_array.Permissioned.t Bin_prot.Read.reader
val __bin_read_t__ :
'a Bin_prot.Read.reader ->
'perms Bin_prot.Read.reader ->
(int -> ('a, 'perms) Core_array.Permissioned.t) Bin_prot.Read.reader
val bin_reader_t :
'a Bin_prot.Type_class.reader ->
'perms Bin_prot.Type_class.reader ->
('a, 'perms) Core_array.Permissioned.t Bin_prot.Type_class.reader
val bin_size_t :
'a Bin_prot.Size.sizer ->
'perms Bin_prot.Size.sizer ->
('a, 'perms) Core_array.Permissioned.t Bin_prot.Size.sizer
val bin_write_t :
'a Bin_prot.Write.writer ->
'perms Bin_prot.Write.writer ->
('a, 'perms) Core_array.Permissioned.t Bin_prot.Write.writer
val bin_writer_t :
'a Bin_prot.Type_class.writer ->
'perms Bin_prot.Type_class.writer ->
('a, 'perms) Core_array.Permissioned.t Bin_prot.Type_class.writer
end
val t_of_sexp : (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a Core_array.t
val sexp_of_t : ('a -> Sexplib.Sexp.t) -> 'a Core_array.t -> Sexplib.Sexp.t
val compare :
('a -> 'a -> int) -> 'a Core_array.t -> 'a Core_array.t -> int
val bin_t :
'a Bin_prot.Type_class.t -> 'a Core_array.t Bin_prot.Type_class.t
val bin_read_t :
'a Bin_prot.Read.reader -> 'a Core_array.t Bin_prot.Read.reader
val __bin_read_t__ :
'a Bin_prot.Read.reader -> (int -> 'a Core_array.t) Bin_prot.Read.reader
val bin_reader_t :
'a Bin_prot.Type_class.reader ->
'a Core_array.t Bin_prot.Type_class.reader
val bin_size_t :
'a Bin_prot.Size.sizer -> 'a Core_array.t Bin_prot.Size.sizer
val bin_write_t :
'a Bin_prot.Write.writer -> 'a Core_array.t Bin_prot.Write.writer
val bin_writer_t :
'a Bin_prot.Type_class.writer ->
'a Core_array.t Bin_prot.Type_class.writer
end`