Module Typed_array.Int16Array
ocaml
type elt = intreasonml
type elt = int;ocaml
type 'a typed_array = Js.int16Arrayreasonml
type typed_array('a) = Js.int16Array;ocaml
type t = elt typed_arrayreasonml
type t = typed_array(elt);ocaml
val unsafe_get : t -> int -> eltreasonml
let unsafe_get: t => int => elt;ocaml
val unsafe_set : t -> int -> elt -> unitreasonml
let unsafe_set: t => int => elt => unit;ocaml
val buffer : t -> Js.arrayBufferreasonml
let buffer: t => Js.arrayBuffer;ocaml
val byteLength : t -> intreasonml
let byteLength: t => int;ocaml
val byteOffset : t -> intreasonml
let byteOffset: t => int;ocaml
val setArray : elt array -> t -> unitreasonml
let setArray: array(elt) => t => unit;ocaml
val setArrayOffset : elt array -> int -> t -> unitreasonml
let setArrayOffset: array(elt) => int => t => unit;ocaml
val length : t -> intreasonml
let length: t => int;ocaml
val copyWithin : to_:int -> ?start:int -> ?end_:int -> t -> treasonml
let copyWithin: to_:int => ?start:int => ?end_:int => t => t;ocaml
val fill : elt -> ?start:int -> ?end_:int -> t -> treasonml
let fill: elt => ?start:int => ?end_:int => t => t;ocaml
val reverseInPlace : t -> treasonml
let reverseInPlace: t => t;ocaml
val sortInPlace : t -> treasonml
let sortInPlace: t => t;ocaml
val sortInPlaceWith : f:(elt -> elt -> int) -> t -> treasonml
let sortInPlaceWith: f:(elt => elt => int) => t => t;ocaml
val includes : value:elt -> t -> boolreasonml
let includes: value:elt => t => bool;ocaml
val indexOf : value:elt -> ?start:int -> t -> intreasonml
let indexOf: value:elt => ?start:int => t => int;ocaml
val join : ?sep:string -> t -> stringreasonml
let join: ?sep:string => t => string;ocaml
val lastIndexOf : value:elt -> t -> intreasonml
let lastIndexOf: value:elt => t => int;ocaml
val lastIndexOfFrom : value:elt -> from:int -> t -> intreasonml
let lastIndexOfFrom: value:elt => from:int => t => int;ocaml
val slice : ?start:int -> ?end_:int -> t -> treasonml
let slice: ?start:int => ?end_:int => t => t;start is inclusive, end_ exclusive
ocaml
val copy : t -> treasonml
let copy: t => t;ocaml
val subarray : ?start:int -> ?end_:int -> t -> treasonml
let subarray: ?start:int => ?end_:int => t => t;start is inclusive, end_ exclusive
ocaml
val toString : t -> stringreasonml
let toString: t => string;ocaml
val toLocaleString : t -> stringreasonml
let toLocaleString: t => string;ocaml
val entries : t -> (int * elt) Js.iteratorreasonml
let entries: t => Js.iterator((int, elt));ocaml
val every : f:(elt -> bool) -> t -> boolreasonml
let every: f:(elt => bool) => t => bool;ocaml
val everyi : f:(elt -> int -> bool) -> t -> boolreasonml
let everyi: f:(elt => int => bool) => t => bool;ocaml
val filter : f:(elt -> bool) -> t -> treasonml
let filter: f:(elt => bool) => t => t;ocaml
val filteri : f:(elt -> int -> bool) -> t -> treasonml
let filteri: f:(elt => int => bool) => t => t;ocaml
val find : f:(elt -> bool) -> t -> elt Js.undefinedreasonml
let find: f:(elt => bool) => t => Js.undefined(elt);ocaml
val findi : f:(elt -> int -> bool) -> t -> elt Js.undefinedreasonml
let findi: f:(elt => int => bool) => t => Js.undefined(elt);ocaml
val findIndex : f:(elt -> bool) -> t -> intreasonml
let findIndex: f:(elt => bool) => t => int;ocaml
val findIndexi : f:(elt -> int -> bool) -> t -> intreasonml
let findIndexi: f:(elt => int => bool) => t => int;ocaml
val forEach : f:(elt -> unit) -> t -> unitreasonml
let forEach: f:(elt => unit) => t => unit;ocaml
val forEachi : f:(elt -> int -> unit) -> t -> unitreasonml
let forEachi: f:(elt => int => unit) => t => unit;ocaml
val keys : t -> int Js.iteratorreasonml
let keys: t => Js.iterator(int);ocaml
val map : f:(elt -> 'b) -> t -> 'b typed_arrayreasonml
let map: f:(elt => 'b) => t => typed_array('b);ocaml
val mapi : f:(elt -> int -> 'b) -> t -> 'b typed_arrayreasonml
let mapi: f:(elt => int => 'b) => t => typed_array('b);ocaml
val reduce : f:('b -> elt -> 'b) -> init:'b -> t -> 'breasonml
let reduce: f:('b => elt => 'b) => init:'b => t => 'b;ocaml
val reducei : f:('b -> elt -> int -> 'b) -> init:'b -> t -> 'breasonml
let reducei: f:('b => elt => int => 'b) => init:'b => t => 'b;ocaml
val reduceRight : f:('b -> elt -> 'b) -> init:'b -> t -> 'breasonml
let reduceRight: f:('b => elt => 'b) => init:'b => t => 'b;ocaml
val reduceRighti : f:('b -> elt -> int -> 'b) -> init:'b -> t -> 'breasonml
let reduceRighti: f:('b => elt => int => 'b) => init:'b => t => 'b;ocaml
val some : f:(elt -> bool) -> t -> boolreasonml
let some: f:(elt => bool) => t => bool;ocaml
val somei : f:(elt -> int -> bool) -> t -> boolreasonml
let somei: f:(elt => int => bool) => t => bool;ocaml
val _BYTES_PER_ELEMENT : intreasonml
let _BYTES_PER_ELEMENT: int;ocaml
val make : elt array -> treasonml
let make: array(elt) => t;ocaml
val fromBuffer : Js.arrayBuffer -> ?off:int -> ?len:int -> unit -> treasonml
let fromBuffer: Js.arrayBuffer => ?off:int => ?len:int => unit => t;raises Js.Exn.Error raises Js exception parameter offset is in bytes, length in elements
ocaml
val fromLength : int -> treasonml
let fromLength: int => t;ocaml
val from : elt Js.array_like -> treasonml
let from: Js.array_like(elt) => t;ocaml
val values : t -> elt Js.iteratorreasonml
let values: t => Js.iterator(elt);