vector-hashtables-0.1.2.1: Efficient vector-based mutable hashtables implementation.

Copyright | (c) klapaucius swamp_agr 2016-2021
License | BSD3
Safe Haskell | None
Language | Haskell2010

Data.Primitive.PrimArray.Utils

Description

# Documentation

replicate :: (PrimMonad m, Prim a) => Int -> a -> m (MutablePrimArray (PrimState m) a) Source #

clone :: (PrimMonad m, Prim a) => MutablePrimArray (PrimState m) a -> m (MutablePrimArray (PrimState m) a) Source #

unsafeFreeze :: PrimMonad m => MutablePrimArray (PrimState m) a -> m (PrimArray a) Source #

unsafeThaw :: PrimMonad m => PrimArray a -> m (MutablePrimArray (PrimState m) a) Source #

growWith :: (PrimMonad m, Prim a) => a -> MutablePrimArray (PrimState m) a -> Int -> m (MutablePrimArray (PrimState m) a) Source #

growNoZ :: (PrimMonad m, Prim a) => MutablePrimArray (PrimState m) a -> Int -> m (MutablePrimArray (PrimState m) a) Source #

freeze :: (PrimMonad m, Prim a) => MutablePrimArray (PrimState m) a -> m (PrimArray a) Source #

length :: (PrimMonad m, Prim a) => MutablePrimArray (PrimState m) a -> m Int Source #