mirror of
https://github.com/composewell/streamly.git
synced 2024-09-20 16:08:20 +03:00
Use scanl' from the imported stream (D or K)
It was earlier hardcoded to use D.
This commit is contained in:
parent
734004b570
commit
58e8d397f5
@ -847,7 +847,7 @@ scanlM' step begin m = fromStreamD $ D.scanlM' step begin $ toStreamD m
|
||||
-- @since 0.2.0
|
||||
{-# INLINE scanl' #-}
|
||||
scanl' :: (IsStream t, Monad m) => (b -> a -> b) -> b -> t m a -> t m b
|
||||
scanl' step = scanlM' (\a b -> return (step a b))
|
||||
scanl' step z m = fromStreamS $ S.scanl' step z $ toStreamS m
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
-- Transformation by Filtering
|
||||
|
Loading…
Reference in New Issue
Block a user