Skip to content

Commit 121df4a

Browse files
committed
Update cycleTaking docs
[skip ci]
1 parent c9d1e69 commit 121df4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Data/Sequence/Internal.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,9 +1426,9 @@ replicateM n x
14261426
--
14271427
-- prop> cycleTaking k = fromList . take k . cycle . toList
14281428

1429-
-- If you wish to concatenate a non-empty sequence @xs@ with itself precisely
1430-
-- @k@ times, you can use @cycleTaking (k * length xs)@ or just
1431-
-- @replicate k () *> xs@.
1429+
-- If you wish to concatenate a possibly empty sequence @xs@ with
1430+
-- itself precisely @k@ times, use @'stimes' k xs@ instead of this
1431+
-- function.
14321432
--
14331433
-- @since 0.5.8
14341434
cycleTaking :: Int -> Seq a -> Seq a

0 commit comments

Comments
 (0)