@@ -1611,6 +1611,8 @@ break f xs = case findIndex f xs of
1611
1611
-- >>> import qualified Data.Vector.Strict as V
1612
1612
-- >>> V.spanR (>4) $ V.generate 10 id
1613
1613
-- ([5,6,7,8,9],[0,1,2,3,4])
1614
+ --
1615
+ -- @since 0.13.2.0
1614
1616
spanR :: Vector v a => (a -> Bool ) -> v a -> (v a , v a )
1615
1617
{-# INLINE spanR #-}
1616
1618
spanR f = breakR (not . f)
@@ -1620,13 +1622,13 @@ spanR f = breakR (not . f)
1620
1622
--
1621
1623
-- Does not fuse.
1622
1624
--
1623
- -- @since NEXT_VERSION
1624
- --
1625
1625
-- ==== __Examples__
1626
1626
--
1627
1627
-- >>> import qualified Data.Vector.Strict as V
1628
1628
-- >>> V.breakR (<5) $ V.generate 10 id
1629
1629
-- ([5,6,7,8,9],[0,1,2,3,4])
1630
+ --
1631
+ -- @since 0.13.2.0
1630
1632
breakR :: Vector v a => (a -> Bool ) -> v a -> (v a , v a )
1631
1633
{-# INLINE breakR #-}
1632
1634
breakR f xs = case findIndexR f xs of
@@ -1650,7 +1652,7 @@ breakR f xs = case findIndexR f xs of
1650
1652
--
1651
1653
-- See also 'Data.List.groupBy'.
1652
1654
--
1653
- -- @since 0.13.0.1
1655
+ -- @since 0.13.0.0
1654
1656
{-# INLINE groupBy #-}
1655
1657
groupBy :: (Vector v a ) => (a -> a -> Bool ) -> v a -> [v a ]
1656
1658
groupBy _ v | null v = []
@@ -1674,7 +1676,7 @@ groupBy f v =
1674
1676
--
1675
1677
-- See also 'Data.List.group'.
1676
1678
--
1677
- -- @since 0.13.0.1
1679
+ -- @since 0.13.0.0
1678
1680
group :: (Vector v a , Eq a ) => v a -> [v a ]
1679
1681
{-# INLINE group #-}
1680
1682
group = groupBy (==)
0 commit comments