@@ -50,7 +50,6 @@ export let length = array => {
5050 tagSimpleNumber(WasmI32.load(ptr, _ARRAY_LENGTH_OFFSET))
5151}
5252
53- // [FIXME] (#793) Type annotation breaks compiler
5453/**
5554 * Creates a new array of the specified length with each element being
5655 * initialized with the given value.
@@ -64,7 +63,7 @@ export let length = array => {
6463 * @since v0.1.0
6564 */
6665@unsafe
67- export let make /* : (Number, a) -> Array<a>*/ = (length: Number, item: a) => {
66+ export let make: (Number, a) -> Array<a> = (length: Number, item: a) => {
6867 let lengthArg = length
6968 checkLength(length)
7069 let length = coerceNumberToWasmI32(length)
@@ -94,7 +93,7 @@ export let make /*: (Number, a) -> Array<a>*/ = (length: Number, item: a) => {
9493 * @since v0.1.0
9594 */
9695@unsafe
97- export let init /* : (Number, Number -> a) -> Array<a>*/ =
96+ export let init: (Number, Number -> a) -> Array<a> =
9897 (
9998 length: Number,
10099 fn: Number -> a,
@@ -822,7 +821,7 @@ export let zip = (array1: Array<a>, array2: Array<b>) => {
822821 * applying the function to the first elements of each array, the second element
823822 * will contain the result of applying the function to the second elements of
824823 * each array, and so on.
825- *
824+ *
826825 * Calling this function with arrays of different sizes will cause the returned
827826 * array to have the length of the smaller array.
828827 *
@@ -833,7 +832,7 @@ export let zip = (array1: Array<a>, array2: Array<b>) => {
833832 *
834833 * @example Array.zipWith((a, b) => a + b, [> 1, 2, 3], [> 4, 5, 6]) // [> 5, 7, 9]
835834 * @example Array.zipWith((a, b) => a * b, [> 1, 2, 3], [> 4, 5]) // [> 4, 10]
836- *
835+ *
837836 * @since v0.5.3
838837 */
839838export let zipWith = (fn, array1: Array<a>, array2: Array<b>) => {
0 commit comments