@@ -85,6 +85,14 @@ sourceFromList n = S.fromList [n..n+value]
85sourceFromListM :: (S.MonadAsync m, S.IsStream t) => Int -> t m Int
85sourceFromListM :: (S.MonadAsync m, S.IsStream t) => Int -> t m Int
86sourceFromListM n = S.fromListM (Prelude.fmap return [n..n+value])
86sourceFromListM n = S.fromListM (Prelude.fmap return [n..n+value])
88+{-# INLINE sourceFromIndices #-}
89+sourceFromIndices :: (Monad m, S.IsStream t) => Int -> t m Int
90+sourceFromIndices n = S.take value $ S.fromIndices (+ n)
92+{-# INLINE sourceFromIndicesM #-}
93+sourceFromIndicesM :: (S.MonadAsync m, S.IsStream t) => Int -> t m Int
94+sourceFromIndicesM n = S.take value $ S.fromIndicesM (Prelude.fmap return (+ n))
88{-# INLINE sourceFromFoldable #-}
96{-# INLINE sourceFromFoldable #-}
89sourceFromFoldable :: S.IsStream t => Int -> t m Int
97sourceFromFoldable :: S.IsStream t => Int -> t m Int
90sourceFromFoldable n = S.fromFoldable [n..n+value]
98sourceFromFoldable n = S.fromFoldable [n..n+value]