biohazard-2.1: bioinformatics support library
Bio.Streaming.Vector
stream2vector :: (MonadIO m, Vector v a) => Stream (Of a) m r -> m (Of (v a) r) Source #
Reads the whole stream into a Vector.
Vector
stream2vectorN :: (MonadIO m, Vector v a) => Int -> Stream (Of a) m () -> m (v a) Source #
Equivalent to stream2vector . Streaming.Prelude.take n, but terminates early and is thereby more efficient.
stream2vector . Streaming.Prelude.take n