Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
data
Deque (v :: Type -> Type -> Type) s ario RIO.Deque A double-ended queue supporting any underlying vector type and any monad. This implements a circular double-ended queue with exponential growth.
-
rio RIO.Deque A Deque specialized to storable vectors.
-
rio RIO.Deque A Deque specialized to unboxed vectors.
asBDeque :: BDeque s a -> BDeque s ario RIO.Deque Helper function to assist with type inference, forcing usage of a boxed vector.
asSDeque :: SDeque s a -> SDeque s ario RIO.Deque Helper function to assist with type inference, forcing usage of a storable vector.
asUDeque :: UDeque s a -> UDeque s ario RIO.Deque Helper function to assist with type inference, forcing usage of an unboxed vector.
-
rio RIO.Deque -
rio RIO.Deque Convert to an immutable vector of any type. If resulting pure vector corresponds to the mutable one used by the Deque, it will be more efficient to use freezeDeque instead.
Example
>>> :set -XTypeApplications >>> import qualified RIO.Vector.Unboxed as U >>> import qualified RIO.Vector.Storable as S >>> d <- newDeque @U.MVector @Int >>> mapM_ (pushFrontDeque d) [0..10] >>> dequeToVector @S.Vector d [10,9,8,7,6,5,4,3,2,1,0]
-
rio RIO.Deque Fold over a Deque, starting at the beginning. Does not modify the Deque.
-
rio RIO.Deque Fold over a Deque, starting at the end. Does not modify the Deque.