@@ -54,14 +54,13 @@ import Data.ArrayBuffer.Types (ArrayView, kind ArrayViewType, ArrayBuffer, ByteO
5454import Data.ArrayBuffer.ValueMapping (class BinaryValue , class BytesPerValue )
5555import Data.Float32 (Float32 ) as F
5656import Data.Function.Uncurried (Fn2 , Fn3 , mkFn2 , runFn2 , runFn3 )
57- import Data.Maybe (Maybe (..) , fromMaybe )
57+ import Data.Maybe (Maybe , fromMaybe )
5858import Data.Nullable (Nullable , notNull , null , toMaybe , toNullable )
5959import Data.Typelevel.Num (class Nat , toInt' )
6060import Data.UInt (UInt )
6161import Effect (Effect )
6262import Effect.Uncurried (EffectFn1 , EffectFn2 , EffectFn3 , EffectFn4 , mkEffectFn2 , mkEffectFn3 , runEffectFn1 , runEffectFn2 , runEffectFn3 , runEffectFn4 )
6363import Effect.Unsafe (unsafePerformEffect )
64- import Partial.Unsafe (unsafePartial )
6564import Prelude (Unit , flip , pure , (&&), (*), (*>), (-), (<$>), (<<<), (<=), (>=))
6665import Type.Proxy (Proxy (..))
6766
@@ -80,6 +79,7 @@ foreign import byteLength :: forall a. ArrayView a -> ByteLength
8079
8180foreign import lengthImpl :: forall a . ArrayView a -> Length
8281
82+ -- | Represents the number of elements in this typed array.
8383length :: forall a . ArrayView a -> Length
8484length = lengthImpl
8585
0 commit comments