File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1757,15 +1757,15 @@ iscanl :: (Vector v a, Vector v b) => (Int -> a -> b -> a) -> a -> v b -> v a
1757
1757
{-# INLINE iscanl #-}
1758
1758
iscanl f z =
1759
1759
unstream
1760
- . inplace (S. scanl (\ a (i, b) -> f i a b) z . S. indexed) id
1760
+ . inplace (S. scanl (\ a (i, b) -> f i a b) z . S. indexed) ( + 1 )
1761
1761
. stream
1762
1762
1763
1763
-- | /O(n)/ Scan over a vector (strictly) with its index
1764
1764
iscanl' :: (Vector v a , Vector v b ) => (Int -> a -> b -> a ) -> a -> v b -> v a
1765
1765
{-# INLINE iscanl' #-}
1766
1766
iscanl' f z =
1767
1767
unstream
1768
- . inplace (S. scanl' (\ a (i, b) -> f i a b) z . S. indexed) id
1768
+ . inplace (S. scanl' (\ a (i, b) -> f i a b) z . S. indexed) ( + 1 )
1769
1769
. stream
1770
1770
1771
1771
@@ -1824,15 +1824,15 @@ iscanr :: (Vector v a, Vector v b) => (Int -> a -> b -> b) -> b -> v a -> v b
1824
1824
{-# INLINE iscanr #-}
1825
1825
iscanr f z =
1826
1826
unstreamR
1827
- . inplace (S. scanl (flip $ uncurry f) z . S. indexed) id
1827
+ . inplace (S. scanl (flip $ uncurry f) z . S. indexed) ( + 1 )
1828
1828
. streamR
1829
1829
1830
1830
-- | /O(n)/ Right-to-left scan over a vector (strictly) with its index
1831
1831
iscanr' :: (Vector v a , Vector v b ) => (Int -> a -> b -> b ) -> b -> v a -> v b
1832
1832
{-# INLINE iscanr' #-}
1833
1833
iscanr' f z =
1834
1834
unstreamR
1835
- . inplace (S. scanl' (flip $ uncurry f) z . S. indexed) id
1835
+ . inplace (S. scanl' (flip $ uncurry f) z . S. indexed) ( + 1 )
1836
1836
. streamR
1837
1837
1838
1838
-- | /O(n)/ Right-to-left scan over a non-empty vector
You can’t perform that action at this time.
0 commit comments