Extensions to Core.Core_array.
val foldi : init:'a -> 'b array -> f:(int -> 'a -> 'b -> 'a) -> 'a
val random_split : ?random_state:Core.Std.Random.State.t ->
'a array -> p:float -> 'a array * 'a array
makes a random split & subset of an array; p (the fraction that you want to split) is constrained to be 0, 1. Note that the length of the first array will be the closest integer to the fraction you desired, meaning that each element is NOT selected with probability exactly p.
val random_sub : ?random_state:Core.Std.Random.State.t -> 'a array -> p:float -> 'a array
module Access_control : sig .. end
type ('a, +'z) any
module Immutable : sig .. end
type 'a t = ('a, Core.Std.immutable) any
include Core.Std.Sexpable.S1 with type t := 'a t
include Core.Std.Binable.S1 with type t := 'a t
module Read_only : sig .. end
type 'a t = ('a, Core.Std.read_only) any
include Core.Std.Sexpable.S1 with type t := 'a t
include Core.Std.Binable.S1 with type t := 'a t
module Read_write : sig .. end
type 'a t = ('a, Core.Std.read_write) any
include Core.Std.Sexpable.S1 with type t := 'a t
include Core.Std.Binable.S1 with type t := 'a t
type 'a t = 'a Immutable.t
include Core.Std.Sexpable.S1 with type t := 'a t
include Core.Std.Binable.S1 with type t := 'a t
val create : len:int -> 'a -> ('a, 'b) any
val init : int -> f:(int -> 'a) -> ('a, 'b) any
val of_array : 'a array -> 'a Read_write.t
val of_array_copy : 'a array -> ('a, 'b) any
val to_array_copy : ('a, 'b) any -> 'a array
val get : ('a, 'b) any -> int -> 'a
val set : 'a Read_write.t -> int -> 'a -> unit
val append : ('a, 'b) any -> ('a, 'c) any -> ('a, 'd) any
val copy : ('a, 'b) any -> ('a, 'c) any
val map : f:('a -> 'b) -> ('a, 'c) any -> ('b, 'd) any
val mapi : f:(int -> 'a -> 'b) -> ('a, 'c) any -> ('b, 'd) any
val iteri : f:(int -> 'a -> unit) -> ('a, 'b) any -> unit
val filter_opt : ('a option, 'b) any -> ('a, 'c) any
val filter_map : ('a, 'c) any -> f:('a -> 'b option) -> ('b, 'd) any
val filter_mapi : ('a, 'c) any -> f:(int -> 'a -> 'b option) -> ('b, 'd) any
val map2_exn : ('a, 'd) any -> ('b, 'e) any -> f:('a -> 'b -> 'c) -> ('c, 'f) any
val findi : ('a, 'b) any -> f:(int -> 'a -> bool) -> (int * 'a) option
val blito : (('a, 'b) any, 'a Read_write.t) Core.Std.Blit.blito
val permute : ?random_state:Core.Std.Random.State.t -> 'a Read_write.t -> unit
val fill : 'a Read_write.t -> pos:int -> len:int -> 'a -> unit
val of_list : 'a list -> ('a, 'b) any