From 71cc60d13d7fb16bb09ee5f1620d19891e79bda9 Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Thu, 23 Oct 2025 11:06:59 +0200 Subject: [PATCH 1/4] TypedArray docstrings --- .../@rescript/runtime/Stdlib_TypedArray.res | 420 +++++++++++++++++- 1 file changed, 411 insertions(+), 9 deletions(-) diff --git a/packages/@rescript/runtime/Stdlib_TypedArray.res b/packages/@rescript/runtime/Stdlib_TypedArray.res index 406337229b..b105cca1d1 100644 --- a/packages/@rescript/runtime/Stdlib_TypedArray.res +++ b/packages/@rescript/runtime/Stdlib_TypedArray.res @@ -1,65 +1,363 @@ @notUndefined type t<'a> -@get_index external get: (t<'a>, int) => option<'a> = "" -@set_index external set: (t<'a>, int, 'a) => unit = "" +/** +`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds. + +See [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3]) +TypedArray.get(view, 0) == Some(1) +TypedArray.get(view, 10) == None +``` +*/ +@get_index +external get: (t<'a>, int) => option<'a> = "" + +/** +`set(typedArray, index, value)` writes `value` at `index` in place. + +See [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2]) +TypedArray.set(view, 1, 5) +TypedArray.get(view, 1) == Some(5) +``` +*/ +@set_index +external set: (t<'a>, int, 'a) => unit = "" + +/** +`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view. + +See [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN. +*/ +@get +external buffer: t<'a> => Stdlib_ArrayBuffer.t = "buffer" + +/** +`byteLength(typedArray)` returns the length in bytes of the view. + +See [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2]) +TypedArray.byteLength(view) == 8 +``` +*/ +@get +external byteLength: t<'a> => int = "byteLength" + +/** +`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer. + +See [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN. +*/ +@get +external byteOffset: t<'a> => int = "byteOffset" -@get external buffer: t<'a> => Stdlib_ArrayBuffer.t = "buffer" -@get external byteLength: t<'a> => int = "byteLength" -@get external byteOffset: t<'a> => int = "byteOffset" +/** +`setArray(target, source)` copies the values from `source` into `target`, mutating it. + +See [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN. -@send external setArray: (t<'a>, array<'a>) => unit = "set" -@send external setArrayFrom: (t<'a>, array<'a>, int) => unit = "set" +## Examples + +```rescript +let view = Int32Array.fromArray([0, 0]) +TypedArray.setArray(view, [1, 2]) +TypedArray.toString(view) == "1,2" +``` +*/ +@send +external setArray: (t<'a>, array<'a>) => unit = "set" + +/** +`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`. -@get external length: t<'a> => int = "length" +See [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([0, 0, 0]) +TypedArray.setArrayFrom(view, [5, 6], 1) +TypedArray.toString(view) == "0,5,6" +``` +*/ +@send +external setArrayFrom: (t<'a>, array<'a>, int) => unit = "set" + +/** +`length(typedArray)` returns the number of elements. +See [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3]) +TypedArray.length(view) == 3 +``` +*/ +@get +external length: t<'a> => int = "length" + +/** +`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`. + +Beware this will *mutate* the typed array. + +See [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([10, 20, 30]) +let _ = TypedArray.copyAllWithin(view, ~target=1) +TypedArray.toString(view) == "10,10,20" +``` +*/ @send external copyAllWithin: (t<'a>, ~target: int) => array<'a> = "copyWithin" +/** +`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`. + +Beware this will *mutate* the typed array. + +See [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3, 4]) +let _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2) +TypedArray.toString(view) == "3,4,3,4" +``` +*/ @deprecated({ reason: "Use `copyWithin` instead", migrate: TypedArray.copyWithin(), }) @send -external copyWithinToEnd: (t<'a>, ~target: int, ~start: int) => array<'a> = "copyWithin" @send +external copyWithinToEnd: (t<'a>, ~target: int, ~start: int) => array<'a> = "copyWithin" +/** +`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`. + +Beware this will *mutate* the typed array. + +See [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3, 4]) +let _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4) +TypedArray.toString(view) == "1,3,4,4" +``` +*/ +@send @send external copyWithin: (t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a> = "copyWithin" +/** +`fillAll(typedArray, value)` fills every element with `value`. + +Beware this will *mutate* the typed array. + +See [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3]) +let _ = TypedArray.fillAll(view, 9) +TypedArray.toString(view) == "9,9,9" +``` +*/ @send external fillAll: (t<'a>, 'a) => t<'a> = "fill" +/** +`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`. + +Beware this will *mutate* the typed array. +*/ @deprecated({ reason: "Use `fill` instead", migrate: TypedArray.fill(), }) @send +@send external fillToEnd: (t<'a>, 'a, ~start: int) => t<'a> = "fill" + +/** +`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`. + +Beware this will *mutate* the typed array. + +See [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3, 4]) +let _ = TypedArray.fill(view, 0, ~start=1, ~end=3) +TypedArray.toString(view) == "1,0,0,4" +``` +*/ @send external fill: (t<'a>, 'a, ~start: int, ~end: int=?) => t<'a> = "fill" +/** +`reverse(typedArray)` reverses the elements of the view in place. + +Beware this will *mutate* the typed array. + +See [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN. +*/ @send external reverse: t<'a> => unit = "reverse" + +/** +`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched. + +See [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3]) +let reversed = TypedArray.toReversed(view) +TypedArray.toString(reversed) == "3,2,1" +TypedArray.toString(view) == "1,2,3" +``` +*/ @send external toReversed: t<'a> => t<'a> = "toReversed" +/** +`sort(typedArray, comparator)` sorts the values in place using `comparator`. + +Beware this will *mutate* the typed array. + +See [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN. +*/ @send external sort: (t<'a>, ('a, 'a) => Stdlib_Ordering.t) => unit = "sort" +/** +`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched. + +See [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([3, 1, 2]) +let sorted = TypedArray.toSorted(view, Int.compare) +TypedArray.toString(sorted) == "1,2,3" +TypedArray.toString(view) == "3,1,2" +``` +*/ @send external toSorted: (t<'a>, ('a, 'a) => Stdlib_Ordering.t) => t<'a> = "toSorted" +/** +`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`. + +See [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3]) +let updated = TypedArray.with(view, 1, 10) +TypedArray.toString(updated) == "1,10,3" +TypedArray.toString(view) == "1,2,3" +``` +*/ @send external with: (t<'a>, int, 'a) => t<'a> = "with" +/** +`includes(typedArray, value)` returns `true` if `value` occurs in the typed array. + +See [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3]) +TypedArray.includes(view, 2) == true +TypedArray.includes(view, 10) == false +``` +*/ @send external includes: (t<'a>, 'a) => bool = "includes" +/** +`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found. + +See [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN. +*/ @send external indexOf: (t<'a>, 'a) => int = "indexOf" +/** +`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`. +*/ @send external indexOfFrom: (t<'a>, 'a, int) => int = "indexOf" +/** +`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`. + +See [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN. + +## Examples + +```rescript +let view = Int32Array.fromArray([1, 2, 3]) +TypedArray.joinWith(view, "-") == "1-2-3" +``` +*/ @send external joinWith: (t<'a>, string) => string = "join" +/** +`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found. + +See [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN. +*/ @send external lastIndexOf: (t<'a>, 'a) => int = "lastIndexOf" +/** +`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`. +*/ @send external lastIndexOfFrom: (t<'a>, 'a, int) => int = "lastIndexOf" +/** +`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`. + +See [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN. +*/ @send external slice: (t<'a>, ~start: int, ~end: int=?) => t<'a> = "slice" +/** +`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array. +*/ @deprecated({ reason: "Use `slice` instead", migrate: TypedArray.slice(), }) @send external sliceToEnd: (t<'a>, ~start: int) => t<'a> = "slice" +/** +`copy(typedArray)` produces a shallow copy of the typed array. +*/ @send external copy: t<'a> => t<'a> = "slice" +/** +`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`. + +See [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN. +*/ @send external subarray: (t<'a>, ~start: int, ~end: int=?) => t<'a> = "subarray" +/** +`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer. +*/ @deprecated({ reason: "Use `subarray` instead", migrate: TypedArray.subarray(), @@ -67,40 +365,144 @@ external sliceToEnd: (t<'a>, ~start: int) => t<'a> = "slice" @send external subarrayToEnd: (t<'a>, ~start: int) => t<'a> = "subarray" +/** +`toString(typedArray)` returns a comma-separated string of the elements. + +See [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN. + +## Examples + +```rescript +Int32Array.fromArray([1, 2])->TypedArray.toString == "1,2" +``` +*/ @send external toString: t<'a> => string = "toString" +/** +`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting. + +See [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN. +*/ @send external toLocaleString: t<'a> => string = "toLocaleString" +/** +`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element. + +See [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN. +*/ @send external every: (t<'a>, 'a => bool) => bool = "every" +/** +`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`. +*/ @send external everyWithIndex: (t<'a>, ('a, int) => bool) => bool = "every" +/** +`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`. + +See [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN. +*/ @send external filter: (t<'a>, 'a => bool) => t<'a> = "filter" +/** +`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`. +*/ @send external filterWithIndex: (t<'a>, ('a, int) => bool) => t<'a> = "filter" +/** +`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches. + +See [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN. +*/ @send external find: (t<'a>, 'a => bool) => option<'a> = "find" +/** +`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index. +*/ @send external findWithIndex: (t<'a>, ('a, int) => bool) => option<'a> = "find" +/** +`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`. + +See [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN. +*/ @send external findLast: (t<'a>, 'a => bool) => option<'a> = "findLast" +/** +`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`. +*/ @send external findLastWithIndex: (t<'a>, ('a, int) => bool) => option<'a> = "findLast" +/** +`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do. + +See [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN. +*/ @send external findIndex: (t<'a>, 'a => bool) => int = "findIndex" +/** +`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`. +*/ @send external findIndexWithIndex: (t<'a>, ('a, int) => bool) => int = "findIndex" +/** +`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do. + +See [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN. +*/ @send external findLastIndex: (t<'a>, 'a => bool) => int = "findLastIndex" +/** +`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`. +*/ @send external findLastIndexWithIndex: (t<'a>, ('a, int) => bool) => int = "findLastIndex" +/** +`forEach(typedArray, f)` runs `f` for every element in order. + +See [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN. +*/ @send external forEach: (t<'a>, 'a => unit) => unit = "forEach" +/** +`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index. +*/ @send external forEachWithIndex: (t<'a>, ('a, int) => unit) => unit = "forEach" +/** +`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element. + +See [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN. +*/ @send external map: (t<'a>, 'a => 'b) => t<'b> = "map" +/** +`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index. +*/ @send external mapWithIndex: (t<'a>, ('a, int) => 'b) => t<'b> = "map" +/** +`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`. + +See [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN. +*/ @send external reduce: (t<'a>, ('b, 'a) => 'b, 'b) => 'b = "reduce" +/** +`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`. +*/ @send external reduceWithIndex: (t<'a>, ('b, 'a, int) => 'b, 'b) => 'b = "reduce" +/** +`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left. + +See [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN. +*/ @send external reduceRight: (t<'a>, ('b, 'a) => 'b, 'b) => 'b = "reduceRight" +/** +`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`. +*/ @send external reduceRightWithIndex: (t<'a>, ('b, 'a, int) => 'b, 'b) => 'b = "reduceRight" +/** +`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element. + +See [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN. +*/ @send external some: (t<'a>, 'a => bool) => bool = "some" +/** +`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index. +*/ @send external someWithIndex: (t<'a>, ('a, int) => bool) => bool = "some" /** From e06a800673ea0e18a348b9711e749d28cc495dc6 Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Thu, 23 Oct 2025 11:11:56 +0200 Subject: [PATCH 2/4] Completions --- .../expected/CompletionTypedArrays.res.txt | 1188 ++++++++--------- 1 file changed, 594 insertions(+), 594 deletions(-) diff --git a/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt b/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt index b9daf3e10d..770a444d12 100644 --- a/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt +++ b/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt @@ -31,7 +31,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -43,7 +43,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -55,7 +55,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -67,7 +67,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -79,7 +79,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -91,7 +91,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -115,7 +115,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -127,7 +127,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -139,7 +139,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -151,7 +151,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -163,7 +163,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -175,7 +175,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -187,7 +187,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -199,7 +199,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -211,7 +211,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -223,7 +223,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -235,7 +235,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -247,7 +247,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -259,7 +259,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -271,7 +271,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -283,7 +283,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -295,7 +295,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -307,7 +307,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -319,7 +319,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -331,7 +331,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -343,7 +343,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -355,7 +355,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -367,7 +367,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -379,7 +379,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -391,7 +391,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -403,7 +403,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -415,7 +415,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -427,7 +427,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -439,7 +439,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -451,7 +451,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -463,7 +463,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -475,7 +475,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -487,7 +487,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -499,7 +499,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -511,7 +511,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -523,7 +523,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -535,7 +535,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -547,7 +547,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -559,7 +559,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -571,7 +571,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -583,7 +583,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -595,7 +595,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -607,7 +607,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -619,7 +619,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -631,7 +631,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -643,7 +643,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -655,7 +655,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -667,7 +667,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -679,7 +679,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -721,7 +721,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -733,7 +733,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -745,7 +745,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -757,7 +757,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -769,7 +769,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -781,7 +781,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -805,7 +805,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -817,7 +817,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -829,7 +829,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -841,7 +841,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -853,7 +853,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -865,7 +865,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -877,7 +877,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -889,7 +889,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -901,7 +901,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -913,7 +913,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -925,7 +925,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -937,7 +937,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -949,7 +949,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -961,7 +961,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -973,7 +973,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -985,7 +985,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -997,7 +997,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -1009,7 +1009,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -1021,7 +1021,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -1033,7 +1033,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -1045,7 +1045,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -1057,7 +1057,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -1069,7 +1069,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -1081,7 +1081,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -1093,7 +1093,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -1105,7 +1105,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -1117,7 +1117,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -1129,7 +1129,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -1141,7 +1141,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -1153,7 +1153,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -1165,7 +1165,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -1177,7 +1177,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -1189,7 +1189,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -1201,7 +1201,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -1213,7 +1213,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -1225,7 +1225,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -1237,7 +1237,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -1249,7 +1249,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -1261,7 +1261,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -1273,7 +1273,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -1285,7 +1285,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -1297,7 +1297,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -1309,7 +1309,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -1321,7 +1321,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -1333,7 +1333,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -1345,7 +1345,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -1357,7 +1357,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -1369,7 +1369,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -1411,7 +1411,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -1423,7 +1423,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -1435,7 +1435,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -1447,7 +1447,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -1459,7 +1459,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -1471,7 +1471,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -1495,7 +1495,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -1507,7 +1507,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -1519,7 +1519,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -1531,7 +1531,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -1543,7 +1543,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -1555,7 +1555,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -1567,7 +1567,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -1579,7 +1579,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -1591,7 +1591,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -1603,7 +1603,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -1615,7 +1615,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -1627,7 +1627,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -1639,7 +1639,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -1651,7 +1651,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -1663,7 +1663,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -1675,7 +1675,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -1687,7 +1687,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -1699,7 +1699,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -1711,7 +1711,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -1723,7 +1723,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -1735,7 +1735,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -1747,7 +1747,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -1759,7 +1759,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -1771,7 +1771,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -1783,7 +1783,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -1795,7 +1795,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -1807,7 +1807,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -1819,7 +1819,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -1831,7 +1831,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -1843,7 +1843,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -1855,7 +1855,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -1867,7 +1867,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -1879,7 +1879,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -1891,7 +1891,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -1903,7 +1903,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -1915,7 +1915,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -1927,7 +1927,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -1939,7 +1939,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -1951,7 +1951,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -1963,7 +1963,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -1975,7 +1975,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -1987,7 +1987,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -1999,7 +1999,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -2011,7 +2011,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -2023,7 +2023,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -2035,7 +2035,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -2047,7 +2047,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -2059,7 +2059,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -2101,7 +2101,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -2113,7 +2113,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -2125,7 +2125,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -2137,7 +2137,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -2149,7 +2149,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -2161,7 +2161,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -2185,7 +2185,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -2197,7 +2197,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -2209,7 +2209,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -2221,7 +2221,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -2233,7 +2233,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -2245,7 +2245,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -2257,7 +2257,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -2269,7 +2269,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -2281,7 +2281,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -2293,7 +2293,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -2305,7 +2305,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -2317,7 +2317,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -2329,7 +2329,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -2341,7 +2341,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -2353,7 +2353,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -2365,7 +2365,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -2377,7 +2377,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -2389,7 +2389,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -2401,7 +2401,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -2413,7 +2413,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -2425,7 +2425,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -2437,7 +2437,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -2449,7 +2449,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -2461,7 +2461,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -2473,7 +2473,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -2485,7 +2485,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -2497,7 +2497,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -2509,7 +2509,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -2521,7 +2521,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -2533,7 +2533,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -2545,7 +2545,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -2557,7 +2557,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -2569,7 +2569,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -2581,7 +2581,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -2593,7 +2593,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -2605,7 +2605,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -2617,7 +2617,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -2629,7 +2629,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -2641,7 +2641,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -2653,7 +2653,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -2665,7 +2665,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -2677,7 +2677,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -2689,7 +2689,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -2701,7 +2701,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -2713,7 +2713,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -2725,7 +2725,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -2737,7 +2737,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -2749,7 +2749,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -2791,7 +2791,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -2803,7 +2803,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -2815,7 +2815,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -2827,7 +2827,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -2839,7 +2839,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -2851,7 +2851,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -2875,7 +2875,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -2887,7 +2887,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -2899,7 +2899,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -2911,7 +2911,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -2923,7 +2923,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -2935,7 +2935,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -2947,7 +2947,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -2959,7 +2959,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -2971,7 +2971,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -2983,7 +2983,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -2995,7 +2995,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -3007,7 +3007,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -3019,7 +3019,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -3031,7 +3031,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -3043,7 +3043,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -3055,7 +3055,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -3067,7 +3067,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -3079,7 +3079,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -3091,7 +3091,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -3103,7 +3103,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -3115,7 +3115,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -3127,7 +3127,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -3139,7 +3139,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -3151,7 +3151,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -3163,7 +3163,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -3175,7 +3175,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -3187,7 +3187,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -3199,7 +3199,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -3211,7 +3211,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -3223,7 +3223,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -3235,7 +3235,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -3247,7 +3247,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -3259,7 +3259,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -3271,7 +3271,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -3283,7 +3283,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -3295,7 +3295,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -3307,7 +3307,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -3319,7 +3319,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -3331,7 +3331,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -3343,7 +3343,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -3355,7 +3355,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -3367,7 +3367,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -3379,7 +3379,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -3391,7 +3391,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -3403,7 +3403,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -3415,7 +3415,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -3427,7 +3427,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -3439,7 +3439,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -3481,7 +3481,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -3493,7 +3493,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -3505,7 +3505,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -3517,7 +3517,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -3529,7 +3529,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -3541,7 +3541,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -3565,7 +3565,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -3577,7 +3577,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -3589,7 +3589,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -3601,7 +3601,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -3613,7 +3613,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -3625,7 +3625,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -3637,7 +3637,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -3649,7 +3649,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -3661,7 +3661,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -3673,7 +3673,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -3685,7 +3685,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -3697,7 +3697,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -3709,7 +3709,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -3721,7 +3721,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -3733,7 +3733,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -3745,7 +3745,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -3757,7 +3757,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -3769,7 +3769,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -3781,7 +3781,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -3793,7 +3793,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -3805,7 +3805,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -3817,7 +3817,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -3829,7 +3829,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -3841,7 +3841,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -3853,7 +3853,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -3865,7 +3865,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -3877,7 +3877,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -3889,7 +3889,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -3901,7 +3901,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -3913,7 +3913,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -3925,7 +3925,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -3937,7 +3937,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -3949,7 +3949,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -3961,7 +3961,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -3973,7 +3973,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -3985,7 +3985,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -3997,7 +3997,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -4009,7 +4009,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -4021,7 +4021,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -4033,7 +4033,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -4045,7 +4045,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -4057,7 +4057,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -4069,7 +4069,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -4081,7 +4081,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -4093,7 +4093,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -4105,7 +4105,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -4117,7 +4117,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -4129,7 +4129,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -4171,7 +4171,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -4183,7 +4183,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -4195,7 +4195,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -4207,7 +4207,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -4219,7 +4219,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -4231,7 +4231,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -4255,7 +4255,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -4267,7 +4267,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -4279,7 +4279,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -4291,7 +4291,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -4303,7 +4303,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -4315,7 +4315,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -4327,7 +4327,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -4339,7 +4339,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -4351,7 +4351,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -4363,7 +4363,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -4375,7 +4375,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -4387,7 +4387,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -4399,7 +4399,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -4411,7 +4411,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -4423,7 +4423,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -4435,7 +4435,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -4447,7 +4447,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -4459,7 +4459,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -4471,7 +4471,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -4483,7 +4483,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -4495,7 +4495,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -4507,7 +4507,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -4519,7 +4519,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -4531,7 +4531,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -4543,7 +4543,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -4555,7 +4555,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -4567,7 +4567,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -4579,7 +4579,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -4591,7 +4591,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -4603,7 +4603,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -4615,7 +4615,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -4627,7 +4627,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -4639,7 +4639,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -4651,7 +4651,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -4663,7 +4663,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -4675,7 +4675,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -4687,7 +4687,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -4699,7 +4699,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -4711,7 +4711,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -4723,7 +4723,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -4735,7 +4735,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -4747,7 +4747,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -4759,7 +4759,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -4771,7 +4771,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -4783,7 +4783,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -4795,7 +4795,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -4807,7 +4807,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -4819,7 +4819,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -4861,7 +4861,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -4873,7 +4873,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -4885,7 +4885,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -4897,7 +4897,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -4909,7 +4909,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -4921,7 +4921,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -4945,7 +4945,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -4957,7 +4957,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -4969,7 +4969,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -4981,7 +4981,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -4993,7 +4993,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -5005,7 +5005,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -5017,7 +5017,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -5029,7 +5029,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -5041,7 +5041,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -5053,7 +5053,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -5065,7 +5065,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -5077,7 +5077,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -5089,7 +5089,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -5101,7 +5101,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -5113,7 +5113,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -5125,7 +5125,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -5137,7 +5137,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -5149,7 +5149,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -5161,7 +5161,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -5173,7 +5173,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -5185,7 +5185,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -5197,7 +5197,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -5209,7 +5209,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -5221,7 +5221,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -5233,7 +5233,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -5245,7 +5245,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -5257,7 +5257,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -5269,7 +5269,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -5281,7 +5281,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -5293,7 +5293,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -5305,7 +5305,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -5317,7 +5317,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -5329,7 +5329,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -5341,7 +5341,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -5353,7 +5353,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -5365,7 +5365,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -5377,7 +5377,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -5389,7 +5389,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -5401,7 +5401,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -5413,7 +5413,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -5425,7 +5425,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -5437,7 +5437,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -5449,7 +5449,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -5461,7 +5461,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -5473,7 +5473,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -5485,7 +5485,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -5497,7 +5497,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -5509,7 +5509,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -5551,7 +5551,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -5563,7 +5563,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -5575,7 +5575,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -5587,7 +5587,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -5599,7 +5599,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -5611,7 +5611,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -5635,7 +5635,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -5647,7 +5647,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -5659,7 +5659,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -5671,7 +5671,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -5683,7 +5683,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -5695,7 +5695,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -5707,7 +5707,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -5719,7 +5719,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -5731,7 +5731,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -5743,7 +5743,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -5755,7 +5755,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -5767,7 +5767,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -5779,7 +5779,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -5791,7 +5791,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -5803,7 +5803,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -5815,7 +5815,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -5827,7 +5827,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -5839,7 +5839,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -5851,7 +5851,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -5863,7 +5863,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -5875,7 +5875,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -5887,7 +5887,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -5899,7 +5899,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -5911,7 +5911,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -5923,7 +5923,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -5935,7 +5935,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -5947,7 +5947,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -5959,7 +5959,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -5971,7 +5971,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -5983,7 +5983,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -5995,7 +5995,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -6007,7 +6007,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -6019,7 +6019,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -6031,7 +6031,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -6043,7 +6043,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -6055,7 +6055,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -6067,7 +6067,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -6079,7 +6079,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -6091,7 +6091,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -6103,7 +6103,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -6115,7 +6115,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -6127,7 +6127,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -6139,7 +6139,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -6151,7 +6151,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -6163,7 +6163,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -6175,7 +6175,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -6187,7 +6187,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -6199,7 +6199,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -6241,7 +6241,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -6253,7 +6253,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -6265,7 +6265,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -6277,7 +6277,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -6289,7 +6289,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -6301,7 +6301,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -6325,7 +6325,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -6337,7 +6337,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -6349,7 +6349,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -6361,7 +6361,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -6373,7 +6373,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -6385,7 +6385,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -6397,7 +6397,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -6409,7 +6409,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -6421,7 +6421,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -6433,7 +6433,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -6445,7 +6445,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -6457,7 +6457,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -6469,7 +6469,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -6481,7 +6481,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -6493,7 +6493,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -6505,7 +6505,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -6517,7 +6517,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -6529,7 +6529,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -6541,7 +6541,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -6553,7 +6553,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -6565,7 +6565,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -6577,7 +6577,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -6589,7 +6589,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -6601,7 +6601,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -6613,7 +6613,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -6625,7 +6625,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -6637,7 +6637,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -6649,7 +6649,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -6661,7 +6661,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -6673,7 +6673,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -6685,7 +6685,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -6697,7 +6697,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -6709,7 +6709,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -6721,7 +6721,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -6733,7 +6733,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -6745,7 +6745,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -6757,7 +6757,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -6769,7 +6769,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -6781,7 +6781,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -6793,7 +6793,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -6805,7 +6805,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -6817,7 +6817,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -6829,7 +6829,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -6841,7 +6841,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -6853,7 +6853,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -6865,7 +6865,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -6877,7 +6877,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -6889,7 +6889,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ @@ -6931,7 +6931,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndexWithIndex(typedArray, predicate)` is the indexed variant of `findLastIndex`.\n"}, "sortText": "findLastIndexWithIndex", "insertText": "->TypedArray.findLastIndexWithIndex", "additionalTextEdits": [{ @@ -6943,7 +6943,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOf(typedArray, value)` returns the last index of `value`, or `-1` if not found.\n\nSee [`TypedArray.prototype.lastIndexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf) on MDN.\n"}, "sortText": "lastIndexOf", "insertText": "->TypedArray.lastIndexOf", "additionalTextEdits": [{ @@ -6955,7 +6955,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastWithIndex(typedArray, predicate)` is the indexed variant of `findLast`.\n"}, "sortText": "findLastWithIndex", "insertText": "->TypedArray.findLastWithIndex", "additionalTextEdits": [{ @@ -6967,7 +6967,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLast(typedArray, predicate)` returns the last element that satisfies `predicate`.\n\nSee [`TypedArray.prototype.findLast`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLast) on MDN.\n"}, "sortText": "findLast", "insertText": "->TypedArray.findLast", "additionalTextEdits": [{ @@ -6979,7 +6979,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filter(typedArray, predicate)` returns a new typed array containing only elements that satisfy `predicate`.\n\nSee [`TypedArray.prototype.filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter) on MDN.\n"}, "sortText": "filter", "insertText": "->TypedArray.filter", "additionalTextEdits": [{ @@ -6991,7 +6991,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteLength(typedArray)` returns the length in bytes of the view.\n\nSee [`TypedArray.prototype.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.byteLength(view) == 8\n```\n"}, "sortText": "byteLength", "insertText": "->TypedArray.byteLength", "additionalTextEdits": [{ @@ -7015,7 +7015,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRightWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduceRight`.\n"}, "sortText": "reduceRightWithIndex", "insertText": "->TypedArray.reduceRightWithIndex", "additionalTextEdits": [{ @@ -7027,7 +7027,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceRight(typedArray, reducer, initial)` is like `reduce` but processes the elements from right to left.\n\nSee [`TypedArray.prototype.reduceRight`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight) on MDN.\n"}, "sortText": "reduceRight", "insertText": "->TypedArray.reduceRight", "additionalTextEdits": [{ @@ -7039,7 +7039,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, string) => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`joinWith(typedArray, separator)` returns a string formed by the elements joined with `separator`.\n\nSee [`TypedArray.prototype.join`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.joinWith(view, \"-\") == \"1-2-3\"\n```\n"}, "sortText": "joinWith", "insertText": "->TypedArray.joinWith", "additionalTextEdits": [{ @@ -7051,7 +7051,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => ArrayBuffer.t", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`buffer(typedArray)` returns the underlying `ArrayBuffer` backing this view.\n\nSee [`TypedArray.prototype.buffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer) on MDN.\n"}, "sortText": "buffer", "insertText": "->TypedArray.buffer", "additionalTextEdits": [{ @@ -7063,7 +7063,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduce(typedArray, reducer, initial)` combines the elements from left to right using `reducer`.\n\nSee [`TypedArray.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce) on MDN.\n"}, "sortText": "reduce", "insertText": "->TypedArray.reduce", "additionalTextEdits": [{ @@ -7075,7 +7075,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEachWithIndex(typedArray, f)` runs `f` for every element, also providing the index.\n"}, "sortText": "forEachWithIndex", "insertText": "->TypedArray.forEachWithIndex", "additionalTextEdits": [{ @@ -7087,7 +7087,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copy(typedArray)` produces a shallow copy of the typed array.\n"}, "sortText": "copy", "insertText": "->TypedArray.copy", "additionalTextEdits": [{ @@ -7099,7 +7099,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`someWithIndex(typedArray, predicate)` behaves like `some`, but `predicate` also receives the element index.\n"}, "sortText": "someWithIndex", "insertText": "->TypedArray.someWithIndex", "additionalTextEdits": [{ @@ -7111,7 +7111,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndexWithIndex(typedArray, predicate)` is the indexed variant of `findIndex`.\n"}, "sortText": "findIndexWithIndex", "insertText": "->TypedArray.findIndexWithIndex", "additionalTextEdits": [{ @@ -7123,7 +7123,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`sliceToEnd(typedArray, ~start)` returns the elements from `start` through the end in a new typed array.\n"}, "sortText": "sliceToEnd", "insertText": "->TypedArray.sliceToEnd", "additionalTextEdits": [{ @@ -7135,7 +7135,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`slice(typedArray, ~start, ~end)` returns a new typed array containing the elements in `[start, end)`.\n\nSee [`TypedArray.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice) on MDN.\n"}, "sortText": "slice", "insertText": "->TypedArray.slice", "additionalTextEdits": [{ @@ -7147,7 +7147,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findLastIndex(typedArray, predicate)` returns the index of the last matching element, or `-1` if none do.\n\nSee [`TypedArray.prototype.findLastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex) on MDN.\n"}, "sortText": "findLastIndex", "insertText": "->TypedArray.findLastIndex", "additionalTextEdits": [{ @@ -7159,7 +7159,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`includes(typedArray, value)` returns `true` if `value` occurs in the typed array.\n\nSee [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.includes(view, 2) == true\nTypedArray.includes(view, 10) == false\n```\n"}, "sortText": "includes", "insertText": "->TypedArray.includes", "additionalTextEdits": [{ @@ -7171,7 +7171,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, 'a, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`fillToEnd(typedArray, value, ~start)` fills from `start` through the end with `value`.\n\nBeware this will *mutate* the typed array.\n"}, "sortText": "fillToEnd", "insertText": "->TypedArray.fillToEnd", "additionalTextEdits": [{ @@ -7183,7 +7183,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fillAll(typedArray, value)` fills every element with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet _ = TypedArray.fillAll(view, 9)\nTypedArray.toString(view) == \"9,9,9\"\n```\n"}, "sortText": "fillAll", "insertText": "->TypedArray.fillAll", "additionalTextEdits": [{ @@ -7195,7 +7195,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`find(typedArray, predicate)` returns the first element that satisfies `predicate`, or `None` if nothing matches.\n\nSee [`TypedArray.prototype.find`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find) on MDN.\n"}, "sortText": "find", "insertText": "->TypedArray.find", "additionalTextEdits": [{ @@ -7207,7 +7207,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~start: int) => t<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`subarrayToEnd(typedArray, ~start)` returns a new view from `start` to the end of the buffer.\n"}, "sortText": "subarrayToEnd", "insertText": "->TypedArray.subarrayToEnd", "additionalTextEdits": [{ @@ -7219,7 +7219,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -7231,7 +7231,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toLocaleString(typedArray)` concatenates the elements using locale-aware formatting.\n\nSee [`TypedArray.prototype.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString) on MDN.\n"}, "sortText": "toLocaleString", "insertText": "->TypedArray.toLocaleString", "additionalTextEdits": [{ @@ -7243,7 +7243,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`lastIndexOfFrom(typedArray, value, fromIndex)` searches backwards starting at `fromIndex`.\n"}, "sortText": "lastIndexOfFrom", "insertText": "->TypedArray.lastIndexOfFrom", "additionalTextEdits": [{ @@ -7255,7 +7255,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findIndex(typedArray, predicate)` returns the index of the first element that satisfies `predicate`, or `-1` if none do.\n\nSee [`TypedArray.prototype.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex) on MDN.\n"}, "sortText": "findIndex", "insertText": "->TypedArray.findIndex", "additionalTextEdits": [{ @@ -7267,7 +7267,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`filterWithIndex(typedArray, predicate)` behaves like `filter` but also passes the index to `predicate`.\n"}, "sortText": "filterWithIndex", "insertText": "->TypedArray.filterWithIndex", "additionalTextEdits": [{ @@ -7279,7 +7279,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`sort(typedArray, comparator)` sorts the values in place using `comparator`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort) on MDN.\n"}, "sortText": "sort", "insertText": "->TypedArray.sort", "additionalTextEdits": [{ @@ -7291,7 +7291,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`mapWithIndex(typedArray, f)` behaves like `map`, but `f` also receives the index.\n"}, "sortText": "mapWithIndex", "insertText": "->TypedArray.mapWithIndex", "additionalTextEdits": [{ @@ -7303,7 +7303,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`every(typedArray, predicate)` returns `true` if `predicate` returns `true` for every element.\n\nSee [`TypedArray.prototype.every`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every) on MDN.\n"}, "sortText": "every", "insertText": "->TypedArray.every", "additionalTextEdits": [{ @@ -7315,7 +7315,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`length(typedArray)` returns the number of elements.\n\nSee [`TypedArray.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.length(view) == 3\n```\n"}, "sortText": "length", "insertText": "->TypedArray.length", "additionalTextEdits": [{ @@ -7327,7 +7327,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOf(typedArray, value)` returns the first index of `value`, or `-1` when not found.\n\nSee [`TypedArray.prototype.indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf) on MDN.\n"}, "sortText": "indexOf", "insertText": "->TypedArray.indexOf", "additionalTextEdits": [{ @@ -7339,7 +7339,7 @@ Path "kind": 12, "tags": [1], "detail": "(t<'a>, ~target: int, ~start: int) => array<'a>", - "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`copyWithinToEnd(typedArray, ~target, ~start)` copies values from `start` through the end of the view into the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithinToEnd(view, ~target=0, ~start=2)\nTypedArray.toString(view) == \"3,4,3,4\"\n```\n"}, "sortText": "copyWithinToEnd", "insertText": "->TypedArray.copyWithinToEnd", "additionalTextEdits": [{ @@ -7351,7 +7351,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`some(typedArray, predicate)` returns `true` if `predicate` returns `true` for at least one element.\n\nSee [`TypedArray.prototype.some`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some) on MDN.\n"}, "sortText": "some", "insertText": "->TypedArray.some", "additionalTextEdits": [{ @@ -7363,7 +7363,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('b, 'a, int) => 'b, 'b) => 'b", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reduceWithIndex(typedArray, reducer, initial)` is the indexed variant of `reduce`.\n"}, "sortText": "reduceWithIndex", "insertText": "->TypedArray.reduceWithIndex", "additionalTextEdits": [{ @@ -7375,7 +7375,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => 'b) => t<'b>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`map(typedArray, f)` returns a new typed array whose elements are produced by applying `f` to each element.\n\nSee [`TypedArray.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map) on MDN.\n"}, "sortText": "map", "insertText": "->TypedArray.map", "additionalTextEdits": [{ @@ -7387,7 +7387,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, 'a) => Ordering.t) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toSorted(typedArray, comparator)` returns a new typed array containing the sorted values, leaving the original untouched.\n\nSee [`TypedArray.prototype.toSorted`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([3, 1, 2])\nlet sorted = TypedArray.toSorted(view, Int.compare)\nTypedArray.toString(sorted) == \"1,2,3\"\nTypedArray.toString(view) == \"3,1,2\"\n```\n"}, "sortText": "toSorted", "insertText": "->TypedArray.toSorted", "additionalTextEdits": [{ @@ -7399,7 +7399,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyAllWithin(typedArray, ~target)` copies values starting at index `0` over the positions beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([10, 20, 30])\nlet _ = TypedArray.copyAllWithin(view, ~target=1)\nTypedArray.toString(view) == \"10,10,20\"\n```\n"}, "sortText": "copyAllWithin", "insertText": "->TypedArray.copyAllWithin", "additionalTextEdits": [{ @@ -7411,7 +7411,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`subarray(typedArray, ~start, ~end)` returns a new view referencing the same buffer over `[start, end)`.\n\nSee [`TypedArray.prototype.subarray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray) on MDN.\n"}, "sortText": "subarray", "insertText": "->TypedArray.subarray", "additionalTextEdits": [{ @@ -7423,7 +7423,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArray(target, source)` copies the values from `source` into `target`, mutating it.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0])\nTypedArray.setArray(view, [1, 2])\nTypedArray.toString(view) == \"1,2\"\n```\n"}, "sortText": "setArray", "insertText": "->TypedArray.setArray", "additionalTextEdits": [{ @@ -7435,7 +7435,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -7447,7 +7447,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`with(typedArray, index, value)` returns a new typed array where the element at `index` is replaced with `value`.\n\nSee [`TypedArray.prototype.with`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/with) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet updated = TypedArray.with(view, 1, 10)\nTypedArray.toString(updated) == \"1,10,3\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "with", "insertText": "->TypedArray.with", "additionalTextEdits": [{ @@ -7459,7 +7459,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toReversed(typedArray)` returns a new typed array with the elements in reverse order, leaving the original untouched.\n\nSee [`TypedArray.prototype.toReversed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nlet reversed = TypedArray.toReversed(view)\nTypedArray.toString(reversed) == \"3,2,1\"\nTypedArray.toString(view) == \"1,2,3\"\n```\n"}, "sortText": "toReversed", "insertText": "->TypedArray.toReversed", "additionalTextEdits": [{ @@ -7471,7 +7471,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ~target: int, ~start: int, ~end: int=?) => array<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`copyWithin(typedArray, ~target, ~start, ~end)` copies the section `[start, end)` onto the range beginning at `target`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.copyWithin`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.copyWithin(view, ~target=1, ~start=2, ~end=4)\nTypedArray.toString(view) == \"1,3,4,4\"\n```\n"}, "sortText": "copyWithin", "insertText": "->TypedArray.copyWithin", "additionalTextEdits": [{ @@ -7483,7 +7483,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => bool", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`everyWithIndex(typedArray, checker)` is like `every` but provides the element index to `checker`.\n"}, "sortText": "everyWithIndex", "insertText": "->TypedArray.everyWithIndex", "additionalTextEdits": [{ @@ -7495,7 +7495,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => string", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`toString(typedArray)` returns a comma-separated string of the elements.\n\nSee [`TypedArray.prototype.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString) on MDN.\n\n## Examples\n\n```rescript\nInt32Array.fromArray([1, 2])->TypedArray.toString == \"1,2\"\n```\n"}, "sortText": "toString", "insertText": "->TypedArray.toString", "additionalTextEdits": [{ @@ -7507,7 +7507,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, array<'a>, int) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`setArrayFrom(target, source, index)` copies `source` into `target` starting at `index`.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([0, 0, 0])\nTypedArray.setArrayFrom(view, [5, 6], 1)\nTypedArray.toString(view) == \"0,5,6\"\n```\n"}, "sortText": "setArrayFrom", "insertText": "->TypedArray.setArrayFrom", "additionalTextEdits": [{ @@ -7519,7 +7519,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a => unit) => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`forEach(typedArray, f)` runs `f` for every element in order.\n\nSee [`TypedArray.prototype.forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach) on MDN.\n"}, "sortText": "forEach", "insertText": "->TypedArray.forEach", "additionalTextEdits": [{ @@ -7531,7 +7531,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, ('a, int) => bool) => option<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`findWithIndex(typedArray, predicate)` behaves like `find`, but `predicate` also receives the index.\n"}, "sortText": "findWithIndex", "insertText": "->TypedArray.findWithIndex", "additionalTextEdits": [{ @@ -7543,7 +7543,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, ~start: int, ~end: int=?) => t<'a>", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`fill(typedArray, value, ~start, ~end)` fills the half-open interval `[start, end)` with `value`.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.fill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3, 4])\nlet _ = TypedArray.fill(view, 0, ~start=1, ~end=3)\nTypedArray.toString(view) == \"1,0,0,4\"\n```\n"}, "sortText": "fill", "insertText": "->TypedArray.fill", "additionalTextEdits": [{ @@ -7555,7 +7555,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, 'a, int) => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`indexOfFrom(typedArray, value, fromIndex)` searches for `value` starting at `fromIndex`.\n"}, "sortText": "indexOfFrom", "insertText": "->TypedArray.indexOfFrom", "additionalTextEdits": [{ @@ -7567,7 +7567,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => unit", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`reverse(typedArray)` reverses the elements of the view in place.\n\nBeware this will *mutate* the typed array.\n\nSee [`TypedArray.prototype.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse) on MDN.\n"}, "sortText": "reverse", "insertText": "->TypedArray.reverse", "additionalTextEdits": [{ @@ -7579,7 +7579,7 @@ Path "kind": 12, "tags": [], "detail": "t<'a> => int", - "documentation": null, + "documentation": {"kind": "markdown", "value": "\n`byteOffset(typedArray)` returns the offset in bytes from the start of the buffer.\n\nSee [`TypedArray.prototype.byteOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset) on MDN.\n"}, "sortText": "byteOffset", "insertText": "->TypedArray.byteOffset", "additionalTextEdits": [{ From 6033816034d31588307da6965d164d5b151b00dc Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Thu, 23 Oct 2025 15:23:27 +0200 Subject: [PATCH 3/4] Review --- .../@rescript/runtime/Stdlib_TypedArray.res | 7 ++- .../expected/CompletionTypedArrays.res.txt | 44 +++++++++---------- 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/packages/@rescript/runtime/Stdlib_TypedArray.res b/packages/@rescript/runtime/Stdlib_TypedArray.res index b105cca1d1..e14aefd020 100644 --- a/packages/@rescript/runtime/Stdlib_TypedArray.res +++ b/packages/@rescript/runtime/Stdlib_TypedArray.res @@ -2,7 +2,8 @@ type t<'a> /** -`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds. +`get(typedArray, index)` returns the element at `index` of `typedArray`. +Returns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript. See [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN. @@ -18,7 +19,9 @@ TypedArray.get(view, 10) == None external get: (t<'a>, int) => option<'a> = "" /** -`set(typedArray, index, value)` writes `value` at `index` in place. +`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`. + +Beware this will *mutate* the array. See [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN. diff --git a/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt b/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt index 770a444d12..2bde5b1056 100644 --- a/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt +++ b/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt @@ -319,7 +319,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -535,7 +535,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -1009,7 +1009,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -1225,7 +1225,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -1699,7 +1699,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -1915,7 +1915,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -2389,7 +2389,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -2605,7 +2605,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -3079,7 +3079,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -3295,7 +3295,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -3769,7 +3769,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -3985,7 +3985,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -4459,7 +4459,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -4675,7 +4675,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -5149,7 +5149,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -5365,7 +5365,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -5839,7 +5839,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -6055,7 +6055,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -6529,7 +6529,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -6745,7 +6745,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -7219,7 +7219,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, value)` writes `value` at `index` in place.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -7435,7 +7435,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` wrapped in `Some`, or `None` when the position is out of bounds.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ From 4e22a3717c72891abc89f72004cdaa6b933f559c Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Thu, 23 Oct 2025 15:35:09 +0200 Subject: [PATCH 4/4] Remove non-existant MDN links --- .../@rescript/runtime/Stdlib_TypedArray.res | 4 -- .../expected/CompletionTypedArrays.res.txt | 44 +++++++++---------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/packages/@rescript/runtime/Stdlib_TypedArray.res b/packages/@rescript/runtime/Stdlib_TypedArray.res index e14aefd020..c851e80f9a 100644 --- a/packages/@rescript/runtime/Stdlib_TypedArray.res +++ b/packages/@rescript/runtime/Stdlib_TypedArray.res @@ -5,8 +5,6 @@ type t<'a> `get(typedArray, index)` returns the element at `index` of `typedArray`. Returns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript. -See [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN. - ## Examples ```rescript @@ -23,8 +21,6 @@ external get: (t<'a>, int) => option<'a> = "" Beware this will *mutate* the array. -See [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN. - ## Examples ```rescript diff --git a/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt b/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt index 2bde5b1056..7c9f6d5593 100644 --- a/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt +++ b/tests/analysis_tests/tests/src/expected/CompletionTypedArrays.res.txt @@ -319,7 +319,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -535,7 +535,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -1009,7 +1009,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -1225,7 +1225,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -1699,7 +1699,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -1915,7 +1915,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -2389,7 +2389,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -2605,7 +2605,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -3079,7 +3079,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -3295,7 +3295,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -3769,7 +3769,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -3985,7 +3985,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -4459,7 +4459,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -4675,7 +4675,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -5149,7 +5149,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -5365,7 +5365,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -5839,7 +5839,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -6055,7 +6055,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -6529,7 +6529,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -6745,7 +6745,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{ @@ -7219,7 +7219,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int, 'a) => unit", - "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\nSee [`TypedArray.prototype.set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`set(typedArray, index, item)` sets the provided `item` at `index` of `typedArray`.\n\nBeware this will *mutate* the array.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2])\nTypedArray.set(view, 1, 5)\nTypedArray.get(view, 1) == Some(5)\n```\n"}, "sortText": "set", "insertText": "->TypedArray.set", "additionalTextEdits": [{ @@ -7435,7 +7435,7 @@ Path "kind": 12, "tags": [], "detail": "(t<'a>, int) => option<'a>", - "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\nSee [`TypedArray.prototype.at`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) on MDN.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, + "documentation": {"kind": "markdown", "value": "\n`get(typedArray, index)` returns the element at `index` of `typedArray`.\nReturns `None` if the index does not exist in the typed array. Equivalent to doing `typedArray[index]` in JavaScript.\n\n## Examples\n\n```rescript\nlet view = Int32Array.fromArray([1, 2, 3])\nTypedArray.get(view, 0) == Some(1)\nTypedArray.get(view, 10) == None\n```\n"}, "sortText": "get", "insertText": "->TypedArray.get", "additionalTextEdits": [{