Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Utilities for the "vector" library This library is in an experimental state. Users should be prepared for frequent updates.
toVectorOf :: Vector v a => Getting (Endo [a]) s a -> s -> v alens Data.Vector.Generic.Lens Similar to toListOf, but returning a Vector.
>>> (toVectorOf both (8,15) :: Vector.Vector Int) == Vector.fromList [8,15] True
toVectorOf :: Getting (Endo [a]) s a -> s -> Vector alens Data.Vector.Lens Similar to toListOf, but returning a Vector.
>>> toVectorOf both (8,15) == Vector.fromList [8,15] True
-
conduit Conduit Break up a stream of values into vectors of size n. The final vector may be smaller than n if the total number of values is not a strict multiple of n. No empty vectors will be yielded.
sinkVector :: forall v a (m :: Type -> Type) o . (Vector v a, PrimMonad m) => ConduitT a o m (v a)conduit Conduit Sink incoming values into a vector, growing the vector as necessary to fit more elements. Note that using this function is more memory efficient than sinkList and then converting to a Vector, as it avoids intermediate list constructors. Subject to fusion
-
conduit Conduit Sink incoming values into a vector, up until size maxSize. Subsequent values will be left in the stream. If there are less than maxSize values present, returns a Vector of smaller size. Note that using this function is more memory efficient than sinkList and then converting to a Vector, as it avoids intermediate list constructors. Subject to fusion
-
conduit Data.Conduit.Combinators Break up a stream of values into vectors of size n. The final vector may be smaller than n if the total number of values is not a strict multiple of n. No empty vectors will be yielded.
sinkVector :: forall v a (m :: Type -> Type) o . (Vector v a, PrimMonad m) => ConduitT a o m (v a)conduit Data.Conduit.Combinators Sink incoming values into a vector, growing the vector as necessary to fit more elements. Note that using this function is more memory efficient than sinkList and then converting to a Vector, as it avoids intermediate list constructors. Subject to fusion
-
conduit Data.Conduit.Combinators Sink incoming values into a vector, up until size maxSize. Subsequent values will be left in the stream. If there are less than maxSize values present, returns a Vector of smaller size. Note that using this function is more memory efficient than sinkList and then converting to a Vector, as it avoids intermediate list constructors. Subject to fusion
-
conduit Data.Conduit.Combinators.Stream No documentation available.