Ppx_hardcaml_runtime0.Arrayinclude module type of struct include Core.Array endArray typetype 'a t = 'a Base.Array.tinclude sig ... endval bin_shape_t : Bin_prot.Shape.t -> Bin_prot.Shape.tval bin_size_t : 'a. 'a Bin_prot.Size.sizer -> 'a t Bin_prot.Size.sizerval bin_size_t__local :
'a. 'a Bin_prot.Size.sizer__local ->
'a t Bin_prot.Size.sizer__localval bin_write_t : 'a. 'a Bin_prot.Write.writer -> 'a t Bin_prot.Write.writerval bin_write_t__local :
'a. 'a Bin_prot.Write.writer__local ->
'a t Bin_prot.Write.writer__localval bin_writer_t :
'a. 'a Bin_prot.Type_class.writer ->
'a t Bin_prot.Type_class.writerval bin_read_t : 'a. 'a Bin_prot.Read.reader -> 'a t Bin_prot.Read.readerval __bin_read_t__ :
'a. 'a Bin_prot.Read.reader ->
'a t Bin_prot.Read.vtag_readerval bin_reader_t :
'a. 'a Bin_prot.Type_class.reader ->
'a t Bin_prot.Type_class.readerval bin_t : 'a. 'a Bin_prot.Type_class.t -> 'a t Bin_prot.Type_class.tinclude sig ... endval quickcheck_generator :
'a. 'a Ppx_quickcheck_runtime.Base_quickcheck.Generator.t ->
'a t Ppx_quickcheck_runtime.Base_quickcheck.Generator.t @@ portableval quickcheck_generator__portable :
'a. 'a Ppx_quickcheck_runtime.Base_quickcheck.Generator.t @ portable ->
'a t Ppx_quickcheck_runtime.Base_quickcheck.Generator.t @ portable @@ portableval quickcheck_observer :
'a. 'a Ppx_quickcheck_runtime.Base_quickcheck.Observer.t ->
'a t Ppx_quickcheck_runtime.Base_quickcheck.Observer.t @@ portableval quickcheck_observer__portable :
'a. 'a Ppx_quickcheck_runtime.Base_quickcheck.Observer.t @ portable ->
'a t Ppx_quickcheck_runtime.Base_quickcheck.Observer.t @ portable @@ portableval quickcheck_shrinker :
'a. 'a Ppx_quickcheck_runtime.Base_quickcheck.Shrinker.t ->
'a t Ppx_quickcheck_runtime.Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker__portable :
'a. 'a Ppx_quickcheck_runtime.Base_quickcheck.Shrinker.t @ portable ->
'a t Ppx_quickcheck_runtime.Base_quickcheck.Shrinker.t @ portable @@ portableinclude Typerep_lib.Typerepable.S1 with type 'a t := 'a tval typerep_of_t :
'a Typerep_lib.Std_internal.Typerep.t ->
'a t Typerep_lib.Std_internal.Typerep.t @@ portableval typename_of_t :
'a Typerep_lib.Typename.t ->
'a t Typerep_lib.Typename.t @@ portableBase.Arrayinclude Base.Binary_searchable.S1 with type 'a t := 'a tSee Binary_search.binary_search in binary_search.ml
val binary_search :
?pos:int ->
?len:int ->
'a t ->
compare:('a -> ('key -> int) @ local) @ local ->
([ `Last_strictly_less_than
| `Last_less_than_or_equal_to
| `Last_equal_to
| `First_equal_to
| `First_greater_than_or_equal_to
| `First_strictly_greater_than ] ->
('key ->
int option @ local) @ local) @ localSee Binary_search.binary_search_segmented in binary_search.ml
val binary_search_segmented :
?pos:int ->
?len:int ->
'a t ->
segment_of:('a -> [ `Left | `Right ]) @ local ->
([ `Last_on_left | `First_on_right ] ->
int option @ local) @ localRefer to this in code that hacks around array's current lack of value_or_null support. When the appropriate compiler features land, we will remove this binding and fix up relevant client code.
include Base.Indexed_container.S1_with_creators__''base_with_ext''
with type 'a t := 'a t
with type 'a t__bits64 = 'a t
and type 'a t__bits32 = 'a t
and type 'a t__word = 'a t
and type 'a t__float64 = 'a t
and type 'a t__float32 = 'a t
and type 'a t__'value_mod_external64' = 'a tinclude Base.Container.S1__''base_with_ext''
with type 'a t := 'a t
with type 'a t__bits64 = 'a t
with type 'a t__bits32 = 'a t
with type 'a t__word = 'a t
with type 'a t__float64 = 'a t
with type 'a t__float32 = 'a t
with type 'a t__'value_mod_external64' = 'a ttype 'a t__bits64 = 'a tand 'a t__bits32 = 'a tand 'a t__word = 'a tand 'a t__float64 = 'a tand 'a t__float32 = 'a tand 'a t__'value_mod_external64' = 'a tinclude sig ... endinclude Base.Container.Generic_types__''base_with_ext''
with type (('a : bits64), _, _) t__bits64 := 'a t__bits64
with type ('a : bits64) elt__bits64 := 'a
with type (('a : bits32), _, _) t__bits32 := 'a t__bits32
with type ('a : bits32) elt__bits32 := 'a
with type (('a : word), _, _) t__word := 'a t__word
with type ('a : word) elt__word := 'a
with type (('a : float64), _, _) t__float64 := 'a t__float64
with type ('a : float64) elt__float64 := 'a
with type (('a : float32), _, _) t__float32 := 'a t__float32
with type ('a : float32) elt__float32 := 'a
with type ('a, _, _) t := 'a t
with type 'a elt := 'a
with type ('a, _, _) t__'value_mod_external64' :=
'a t__'value_mod_external64'
with type 'a elt__'value_mod_external64' := 'aThese are all like their equivalents in Container except that an index starting at 0 is added as the first argument to f.
include Base.Container.S1_with_creators__''base_with_ext''
with type ('a : bits64) t__bits64 := 'a t__bits64
and type ('a : bits32) t__bits32 := 'a t__bits32
and type ('a : word) t__word := 'a t__word
and type ('a : float64) t__float64 := 'a t__float64
and type ('a : float32) t__float32 := 'a t__float32
and type 'a t := 'a t
and type 'a t__'value_mod_external64' := 'a t__'value_mod_external64'include sig ... endinclude sig ... endinclude Base.Container.Generic_types__''base_with_ext''
with type (('a : bits64), _, _) t__bits64 := 'a t__bits64
with type ('a : bits64) elt__bits64 := 'a
with type (('a : bits32), _, _) t__bits32 := 'a t__bits32
with type ('a : bits32) elt__bits32 := 'a
with type (('a : word), _, _) t__word := 'a t__word
with type ('a : word) elt__word := 'a
with type (('a : float64), _, _) t__float64 := 'a t__float64
with type ('a : float64) elt__float64 := 'a
with type (('a : float32), _, _) t__float32 := 'a t__float32
with type ('a : float32) elt__float32 := 'a
with type ('a, _, _) t := 'a t
with type 'a elt := 'a
with type ('a, _, _) t__'value_mod_external64' :=
'a t__'value_mod_external64'
with type 'a elt__'value_mod_external64' := 'ainclude sig ... endinclude sig ... endinclude sig ... endinclude sig ... endinclude sig ... endinclude sig ... endval sexp_of_t : 'a. ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.tval sexp_of_t__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a t @ local ->
Sexplib0.Sexp.t @ localval t_of_sexp : 'a. (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a tinclude sig ... endval t_sexp_grammar :
'a. 'a Sexplib0.Sexp_grammar.t ->
'a t Sexplib0.Sexp_grammar.t @@ portableinclude Base.Indexed_container.S1_with_creators with type 'a t := 'a tinclude Base.Container.S1__''value'' with type 'a t := 'a tinclude sig ... endinclude Base.Container.Generic_types__''value''
with type ('a, _, _) t := 'a t
with type 'a elt := 'aThese are all like their equivalents in Container except that an index starting at 0 is added as the first argument to f.
val iteri : 'a 'p1 'p2. 'a t -> f:(int -> ('a -> unit) @ local) @ local -> unitval existsi :
'a 'p1 'p2. 'a t ->
f:(int -> ('a -> bool) @ local) @ local ->
boolval for_alli :
'a 'p1 'p2. 'a t ->
f:(int -> ('a -> bool) @ local) @ local ->
boolval counti : 'a 'p1 'p2. 'a t -> f:(int -> ('a -> bool) @ local) @ local -> intval foldi :
'a 'p1 'p2 'acc. 'a t ->
init:'acc ->
f:(int -> ('acc -> ('a -> 'acc) @ local) @ local) @ local ->
'accval iteri_until :
'a 'p1 'p2 'final. 'a t ->
f:
(int -> ('a -> (unit, 'final) Base.Container.Continue_or_stop.t) @ local) @ local ->
(finish:(int -> 'final) @ local ->
'final) @ localval find_mapi :
'a 'p1 'p2 'b. 'a t ->
f:(int -> ('a -> 'b option) @ local) @ local ->
'b optionval foldi_until :
'a 'p1 'p2 'acc 'final. 'a t ->
init:'acc ->
f:
(int ->
('acc ->
('a ->
('acc, 'final) Base.Container.Continue_or_stop.t) @ local) @ local) @ local ->
(finish:(int -> ('acc -> 'final) @ local) @ local ->
'final) @ localval findi :
'a 'p1 'p2. 'a t ->
f:(int -> ('a -> bool) @ local) @ local ->
(int * 'a) optioninclude Base.Container.S1_with_creators__''value'' with type 'a t := 'a tinclude sig ... endval is_empty : 'a 'p1 'p2. 'a t -> boolval iter : 'a 'p1 'p2. 'a t -> f:('a -> unit) @ local -> unititer must allow exceptions raised in f to escape, terminating the iteration cleanly. The same holds for all functions below taking an f.
val exists : 'a 'p1 'p2. 'a t -> f:('a -> bool) @ local -> boolReturns true if and only if there exists an element for which the provided function evaluates to true. This is a short-circuiting operation.
val for_all : 'a 'p1 'p2. 'a t -> f:('a -> bool) @ local -> boolReturns true if and only if the provided function evaluates to true for all elements. This is a short-circuiting operation.
val count : 'a 'p1 'p2. 'a t -> f:('a -> bool) @ local -> intReturns the number of elements for which the provided function evaluates to true.
val find : 'a 'p1 'p2. 'a t -> f:('a -> bool) @ local -> 'a Option.tReturns as an option the first element for which f evaluates to true.
val to_list : 'a 'p1 'p2. 'a t -> 'a listval min_elt :
'a 'p1 'p2. 'a t ->
compare:('a -> ('a -> int) @ local) @ local ->
'a Option.tReturns a min (resp. max) element from the collection using the provided compare function. In case of a tie, the first element encountered while traversing the collection is returned. The implementation uses fold so it has the same complexity as fold. Returns None iff the collection is empty.
val max_elt :
'a 'p1 'p2. 'a t ->
compare:('a -> ('a -> int) @ local) @ local ->
'a Option.tval sum :
'a 'sum 'p1 'p2. (module Base.Container.Summable with type t = 'sum) ->
'a t ->
f:('a -> 'sum) @ local ->
'sumReturns the sum of f i for all i in the container. The order in which the elements will be summed is unspecified.
val iter_until :
'a 'p1 'p2 'final. 'a t ->
f:('a -> (unit, 'final) Base.Container.Continue_or_stop.t) @ local ->
(finish:(unit -> 'final) @ local ->
'final) @ localiter_until t ~f ~finish is a short-circuiting version of iter. If f returns Stop x the computation ceases and returns x. If f always returns Continue () the final result is computed by finish.
val fold :
'a 'p1 'p2 'acc. 'a t ->
init:'acc ->
f:('acc -> ('a -> 'acc) @ local) @ local ->
'accfold t ~init ~f returns f (... f (f (f init e1) e2) e3 ...) en, where e1..en are the elements of t.
val fold_result :
'a 'p1 'p2 'acc 'e. 'a t ->
init:'acc ->
f:('acc -> ('a -> ('acc, 'e) Result.t) @ local) @ local ->
('acc, 'e) Result.tfold_result t ~init ~f is a short-circuiting version of fold that runs in the Result monad. If f returns an Error _, that value is returned without any additional invocations of f.
val find_map :
'a 'p1 'p2 'b. 'a t ->
f:('a -> 'b Option.t) @ local ->
'b Option.tReturns the first evaluation of f that returns Some, and returns None if there is no such element.
val fold_until :
'a 'p1 'p2 'acc 'final. 'a t ->
init:'acc ->
f:
('acc -> ('a -> ('acc, 'final) Base.Container.Continue_or_stop.t) @ local) @ local ->
(finish:('acc -> 'final) @ local ->
'final) @ localfold_until t ~init ~f ~finish is a short-circuiting version of fold. If f returns Stop _ the computation ceases and results in that value. If f returns Continue _, the fold will proceed. If f never returns Stop _, the final result is computed by finish.
Example:
type maybe_negative =
| Found_negative of int
| All_nonnegative of { sum : int }
(** [first_neg_or_sum list] returns the first negative number in [list], if any,
otherwise returns the sum of the list. *)
let first_neg_or_sum =
List.fold_until ~init:0
~f:(fun sum x ->
if x < 0
then Stop (Found_negative x)
else Continue (sum + x))
~finish:(fun sum -> All_nonnegative { sum })
;;
let x = first_neg_or_sum [1; 2; 3; 4; 5]
val x : maybe_negative = All_nonnegative {sum = 15}
let y = first_neg_or_sum [1; 2; -3; 4; 5]
val y : maybe_negative = Found_negative -3val mem :
'a 'p1 'p2. 'a t ->
'a ->
equal:('a -> ('a -> bool) @ local) @ local ->
boolChecks whether the provided element is there, using equal.
include sig ... endval of_list : 'a 'p1 'p2. 'a list -> 'a tE.g., append (of_list [a; b]) (of_list [c; d; e]) is of_list [a; b; c; d; e]
filter t ~f returns all the elements of t that satisfy the predicate f.
filter_map t ~f applies f to every x in t. The result contains every y for which f x returns Some y.
concat_map t ~f is equivalent to concat (map t ~f).
partition_map t ~f partitions t according to f.
val to_array : 'a. 'a t -> 'a arrayval of_array : 'a. 'a array -> 'a tinclude Base.Container.Generic_types__''value''
with type ('a, _, _) t := 'a t
with type 'a elt := 'amapi is like map. Additionally, it passes in the index of each element as the first argument to the mapped function.
filter_mapi is like filter_map. Additionally, it passes in the index of each element as the first argument to the mapped function.
concat_mapi t ~f is like concat_map. Additionally, it passes the index as an argument.
include Base.Invariant.S1 with type 'a t := 'a tval invariant : ('a -> unit) -> 'a t -> unitMaximum length of a normal array. The maximum length of a float array is max_length/2 on 32-bit machines and max_length on 64-bit machines.
Array.get a n returns the element number n of array a. The first element has number 0. The last element has number Array.length a - 1. You can also write a.(n) instead of Array.get a n.
Raise Invalid_argument "index out of bounds" if n is outside the range 0 to (Array.length a - 1).
Like get, but returns None instead of raising.
Array.set a n x modifies array a in place, replacing element number n with x. You can also write a.(n) <- x instead of Array.set a n x.
Raise Invalid_argument "index out of bounds" if n is outside the range 0 to Array.length a - 1.
Unsafe version of get. Can cause arbitrary behavior when used for an out-of-bounds array access.
Unsafe version of set. Can cause arbitrary behavior when used for an out-of-bounds array access.
create ~len x creates an array of length len with the value x populated in each element.
create_local ~len x is like create. It allocates the array on the local stack. The array's elements are still global.
magic_create_uninitialized ~len creates an array of length len with uninitialized elements -- that is, they may contain arbitrary, nondeterministic 'a values. This can be significantly faster than using create.
magic_create_uninitialized can only be used for GC-ignorable arrays not involving tagged immediates and arrays of elements with unboxed number layout. The compiler rejects attempts to use magic_create_uninitialized to produce e.g. an ('a : value) array.
magic_create_uninitialized can break abstraction boundaries and type safety (e.g. by creating phony witnesses to type equality) and so should be used with caution.
val create_float_uninitialized : len:int -> float tcreate_float_uninitialized ~len creates a float array of length len with uninitialized elements -- that is, they may contain arbitrary, nondeterministic float values. This can be significantly faster than using create, when unboxed float array representations are enabled.
init n ~f creates an array of length n with index i set to f i.
Array.make_matrix dimx dimy e returns a two-dimensional array (an array of arrays) with first dimension dimx and second dimension dimy. All the elements of this new matrix are initially physically equal to e. The element (x,y) of a matrix m is accessed with the notation m.(x).(y).
Raise Invalid_argument if dimx or dimy is negative or greater than Array.max_length.
If the value of e is a floating-point number, then the maximum size is only Array.max_length / 2.
Array.copy_matrix t returns a fresh copy of the array of arrays t. This is typically used when t is a matrix created by Array.make_matrix.
Array.copy a returns a copy of a, that is, a fresh array containing the same elements as a.
val fill :
'a. 'a t @ local ->
(pos:int ->
(len:int ->
('a ->
unit) @ local) @ local) @ localArray.fill a ofs len x modifies the array a in place, storing x in elements number ofs to ofs + len - 1.
Raise Invalid_argument "Array.fill" if ofs and len do not designate a valid subarray of a.
Array.blit v1 o1 v2 o2 len copies len elements from array v1, starting at element number o1, to array v2, starting at element number o2. It works correctly even if v1 and v2 are the same array, and the source and destination chunks overlap.
Raise Invalid_argument "Array.blit" if o1 and len do not designate a valid subarray of v1, or if o2 and len do not designate a valid subarray of v2.
int_blit and float_blit provide fast bound-checked blits for immediate data types. The unsafe versions do not bound-check the arguments.
val foldi_right :
'a t @ local ->
(init:'acc ->
(f:(int -> 'a -> 'acc -> 'acc) ->
'acc) @ local) @ localfolding_map is a version of map that threads an accumulator through calls to f.
Array.fold_map is a combination of Array.fold and Array.map that threads an accumulator through calls to f.
val fold_right :
'a t ->
f:('a -> ('acc -> 'acc) @ local) @ local ->
(init:'acc ->
'acc) @ localArray.fold_right f a ~init computes f a.(0) (f a.(1) ( ... (f a.(n-1) init) ...)), where n is the length of the array a.
All sort functions in this module sort in increasing order by default.
val sort :
?pos:int ->
?len:int ->
'a t @ local ->
(compare:('a -> ('a -> int) @ local) @ local ->
unit) @ localsort uses constant heap space. stable_sort uses linear heap space.
To sort only part of the array, specify pos to be the index to start sorting from and len indicating how many elements to sort.
val stable_sort : 'a t -> compare:('a -> 'a -> int) -> unitval is_sorted :
'a t @ local ->
(compare:('a -> ('a -> int) @ local) @ local ->
bool) @ localval is_sorted_strictly :
'a t @ local ->
(compare:('a -> ('a -> int) @ local) @ local ->
bool) @ localis_sorted_strictly xs ~compare iff is_sorted xs ~compare and no two consecutive elements in xs are equal according to compare.
Merges two arrays: assuming that a1 and a2 are sorted according to the comparison function compare, merge a1 a2 ~compare will return a sorted array containing all the elements of a1 and a2. If several elements compare equal, the elements of a1 will be before the elements of a2.
transpose in the sense of a matrix transpose. It returns None if the arrays are not all the same length.
filter_opt array returns a new array where None entries are omitted and Some x entries are replaced with x. Note that this changes the index at which elements will appear.
Functions with the 2 suffix raise an exception if the lengths of the two given arrays aren't the same.
val map_inplace : 'a t @ local -> (f:('a -> 'a) @ local -> unit) @ localModifies an array in place, applying f to every element of the array
val find_exn : 'a. 'a t -> f:('a -> bool) @ local -> 'afind_exn f t returns the first a in t for which f t.(i) is true. It raises Stdlib.Not_found or Not_found_s if there is no such a.
val swap : 'a. 'a t @ local -> (int -> (int -> unit) @ local) @ localswap arr i j swaps the value at index i with that at index j.
val rev_inplace : 'a. 'a t @ local -> unitrev_inplace t reverses t in place.
val of_list_rev : 'a. 'a list -> 'a tof_list_rev l converts from list then reverses in place.
val find_map_exn : 'a 'b. 'a t -> f:('a -> 'b option) @ local -> 'bReturns the first evaluation of f that returns Some. Raises Stdlib.Not_found or Not_found_s if f always returns None.
val find_mapi_exn :
'a 'b. 'a t ->
f:(int -> ('a -> 'b option) @ local) @ local ->
'bfind_mapi_exn is like find_map_exn but passes the index as an argument.
val of_list_map : 'a 'b. 'a list -> f:('a -> 'b) @ local -> 'b tof_list_map l ~f is the same as of_list (List.map l ~f).
val of_list_mapi :
'a 'b. 'a list ->
f:(int -> ('a -> 'b) @ local) @ local ->
'b tof_list_mapi l ~f is the same as of_list (List.mapi l ~f).
val of_list_rev_map : 'a 'b. 'a list -> f:('a -> 'b) @ local -> 'b tof_list_rev_map l ~f is the same as of_list (List.rev_map l ~f).
val of_list_rev_mapi :
'a 'b. 'a list ->
f:(int -> ('a -> 'b) @ local) @ local ->
'b tof_list_rev_mapi l ~f is the same as of_list (List.rev_mapi l ~f).
for_all2_exn t1 t2 ~f fails if length t1 <> length t2.
exists2_exn t1 t2 ~f fails if length t1 <> length t2.
val findi_exn : 'a t -> f:(int -> ('a -> bool) @ local) @ local -> int * 'aFor backwards compatibility, we return a boxed product for the value-only version of findi_exn (instead of a value & value product)
val find_consecutive_duplicate :
'a t ->
equal:('a -> ('a -> bool) @ local) @ local ->
('a * 'a) optionfind_consecutive_duplicate t ~equal returns the first pair of consecutive elements (a1, a2) in t such that equal a1 a2. They are returned in the same order as they appear in t.
val reduce : 'a t -> f:('a -> ('a -> 'a) @ local) @ local -> 'a optionreduce f [a1; ...; an] is Some (f (... (f (f a1 a2) a3) ...) an). Returns None on the empty array.
val reduce_exn : 'a t -> f:('a -> ('a -> 'a) @ local) @ local -> 'aval permute :
?random_state:Base.Random.State.t ->
?pos:int ->
?len:int ->
'a t @ local ->
unitpermute ?random_state ?pos ?len t randomly permutes t in place.
To permute only part of the array, specify pos to be the index to start permuting from and len indicating how many elements to permute.
permute side-effects random_state by repeated calls to Random.State.int. If random_state is not supplied, permute uses Random.State.default.
val random_element : ?random_state:Base.Random.State.t -> 'a t -> 'a optionrandom_element ?random_state t is None if t is empty, else it is Some x for some x chosen uniformly at random from t.
random_element side-effects random_state by calling Random.State.int. If random_state is not supplied, random_element uses Random.State.default.
val random_element_exn : ?random_state:Base.Random.State.t -> 'a t -> 'asplit_n t n returns a pair of arrays (first, second) where first contains the first n elements of t and second contains the remaining elements.
n >= length t, returns (t, [||]).n <= 0, returns ([||], t).chunks_of t ~length returns an array of arrays whose concatenation is equal to the original array. Every array has length elements, except for possibly the last array, which may have fewer. chunks_of raises if length <= 0.
sorted_copy ar compare returns a shallow copy of ar that is sorted. Similar to List.sort
val last : 'a t -> 'aval last_exn : 'a t -> 'aval to_sequence : 'a t -> 'a Base.Sequence.tThe input array is copied internally so that future modifications of it do not change the sequence.
val to_sequence_mutable : 'a t -> 'a Base.Sequence.tThe input array is shared with the sequence and modifications of it will result in modification of the sequence.
We add extensions for Int and Float arrays to make them bin-able, comparable, sexpable, and blit-able (via Blit.S). Permissioned provides fine-grained access control for arrays.
Operations supporting "normalized" indexes are also available.
module Int = Core.Array.Intmodule Float = Core.Array.Floatval normalize : 'a t -> Base.Int.t -> Base.Int.t @@ portablenormalize array index returns a new index into the array such that if the index is less than zero, the returned index will "wrap around" -- i.e., array.(normalize array (-1)) returns the last element of the array.
val slice : 'a t -> Base.Int.t -> Base.Int.t -> 'a t @@ portableslice t start stop returns a new array including elements t.(start) through t.(stop-1), normalized Python-style with the exception that stop = 0 is treated as stop = length t.
val nget : 'a t -> Base.Int.t -> 'a @@ portableArray access with normalized index.
val nset : 'a t -> Base.Int.t -> 'a -> Base.Unit.t @@ portableArray modification with normalized index.
module Permissioned = Core.Array.PermissionedThe Permissioned module gives the ability to restrict permissions on an array, so you can give a function read-only access to an array, create an immutable array, etc.