Skip to content

Commit 881787c

Browse files
committed
Document length
1 parent 24ee28c commit 881787c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/ArrayBuffer/Typed.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ import Data.ArrayBuffer.Types (ArrayView, kind ArrayViewType, ArrayBuffer, ByteO
5454
import Data.ArrayBuffer.ValueMapping (class BinaryValue, class BytesPerValue)
5555
import Data.Float32 (Float32) as F
5656
import Data.Function.Uncurried (Fn2, Fn3, mkFn2, runFn2, runFn3)
57-
import Data.Maybe (Maybe(..), fromMaybe)
57+
import Data.Maybe (Maybe, fromMaybe)
5858
import Data.Nullable (Nullable, notNull, null, toMaybe, toNullable)
5959
import Data.Typelevel.Num (class Nat, toInt')
6060
import Data.UInt (UInt)
6161
import Effect (Effect)
6262
import Effect.Uncurried (EffectFn1, EffectFn2, EffectFn3, EffectFn4, mkEffectFn2, mkEffectFn3, runEffectFn1, runEffectFn2, runEffectFn3, runEffectFn4)
6363
import Effect.Unsafe (unsafePerformEffect)
64-
import Partial.Unsafe (unsafePartial)
6564
import Prelude (Unit, flip, pure, (&&), (*), (*>), (-), (<$>), (<<<), (<=), (>=))
6665
import Type.Proxy (Proxy(..))
6766

@@ -80,6 +79,7 @@ foreign import byteLength :: forall a. ArrayView a -> ByteLength
8079

8180
foreign import lengthImpl :: forall a. ArrayView a -> Length
8281

82+
-- | Represents the number of elements in this typed array.
8383
length :: forall a. ArrayView a -> Length
8484
length = lengthImpl
8585

0 commit comments

Comments
 (0)