Module
Data.ArrayBuffer.Typed.Gen
- Package
- purescript-arraybuffer
- Repository
- jacereda/purescript-arraybuffer
Functions for generating typed arrays and values.
#genTypedArray Source
genTypedArray :: forall t a m. MonadGen m => TypedArray a t => m t -> m (ArrayView a)
#genFloat32 Source
genFloat32 :: forall m. MonadGen m => m Float32
#genFloat64 Source
genFloat64 :: forall m. MonadGen m => m Number
#WithIndices Source
data WithIndices n a
For generating some set of offsets residing inside the generated array
Constructors
WithIndices (Array Index) (ArrayView a)
Instances
(Generic (ArrayView a) a') => Generic (WithIndices n a) _
#genWithIndices Source
genWithIndices :: forall a n m. MonadGen m => Nat n => m (ArrayView a) -> m (WithIndices n a)