@@ -270,7 +270,7 @@ elem x mo a = runFn3 includesImpl a x (toNullable mo)
270
270
271
271
-- | Fetch element at index.
272
272
unsafeAt :: forall a t . TypedArray a t => Partial => ArrayView a -> Offset -> t
273
- unsafeAt = runFn2 unsafeAtImpl
273
+ unsafeAt a o = runFn2 unsafeAtImpl a o
274
274
275
275
-- | Folding from the left
276
276
foldlM :: forall a t b . TypedArray a t => (b -> t -> Offset -> Effect b ) -> b -> ArrayView a -> Effect b
@@ -350,7 +350,7 @@ foreign import reverseImpl :: forall a. EffectFn1 (ArrayView a) Unit
350
350
351
351
-- | Reverses a typed array in-place.
352
352
reverse :: forall a . ArrayView a -> Effect Unit
353
- reverse = runEffectFn1 reverseImpl
353
+ reverse a = runEffectFn1 reverseImpl a
354
354
355
355
foreign import setImpl :: forall a b . EffectFn3 (ArrayView a ) Offset b Unit
356
356
@@ -380,7 +380,7 @@ foreign import sortImpl :: forall a. EffectFn1 (ArrayView a) Unit
380
380
381
381
-- | Sorts the values in-place
382
382
sort :: forall a . ArrayView a -> Effect Unit
383
- sort = runEffectFn1 sortImpl
383
+ sort a = runEffectFn1 sortImpl a
384
384
385
385
386
386
foreign import subArrayImpl :: forall a . Fn3 (ArrayView a ) (Nullable Offset ) (Nullable Offset ) (ArrayView a )
@@ -404,7 +404,7 @@ foreign import joinImpl :: forall a. Fn2 (ArrayView a) String String
404
404
405
405
-- | Prints array to a delimiter-separated string - see [MDN's spec](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join) for details.
406
406
toString' :: forall a . ArrayView a -> String -> String
407
- toString' = runFn2 joinImpl
407
+ toString' a s = runFn2 joinImpl a s
408
408
409
409
410
410
foreign import unsafeAtImpl :: forall a b . Fn2 (ArrayView a ) Offset b
@@ -413,7 +413,7 @@ foreign import hasIndexImpl :: forall a. Fn2 (ArrayView a) Offset Boolean
413
413
414
414
-- | Determine if a certain index is valid.
415
415
hasIndex :: forall a . ArrayView a -> Offset -> Boolean
416
- hasIndex = runFn2 hasIndexImpl
416
+ hasIndex a o = runFn2 hasIndexImpl a o
417
417
418
418
-- | Fetch element at index.
419
419
at :: forall a t . TypedArray a t => ArrayView a -> Offset -> Maybe t
0 commit comments