Skip to content

Commit

Permalink
Fix false complexity statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
kindaro committed Feb 17, 2024
1 parent 4faa72c commit fb8fca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Data/Text/Lazy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1426,12 +1426,12 @@ groupBy eq (Chunk t ts) = cons x ys : groupBy eq zs
x = T.unsafeHead t
xs = chunk (T.unsafeTail t) ts

-- | /O(n)/ Return all initial segments of the given 'Text',
-- | /O(n²)/ Return all initial segments of the given 'Text',
-- shortest first.
inits :: Text -> [Text]
inits = (NE.toList P.$!) . initsNE

-- | /O(n)/ Return all initial segments of the given 'Text',
-- | /O(n²)/ Return all initial segments of the given 'Text',
-- shortest first.
--
-- @since 2.1.2
Expand Down

0 comments on commit fb8fca2

Please sign in to comment.