Copyright | (C) 2021 QBayLogic B.V. |
---|---|
License | BSD2 (see the file LICENSE) |
Maintainer | QBayLogic B.V. <devops@qbaylogic.com> |
Safe Haskell | None |
Language | Haskell2010 |
Random generation of vectors.
Documentation
genVec :: (MonadGen m, KnownNat n) => m a -> m (Vec n a) Source #
Generate a potentially empty vector, where each element is produced
using the supplied generator. For a non-empty vector, see genNonEmptyVec
.