@@ -75,6 +75,14 @@
75-- "Data.List" like functions and many more powerful combinators to perform
75-- "Data.List" like functions and many more powerful combinators to perform
76-- common programming tasks.
76-- common programming tasks.
78+-- Some common idioms:
80+-- >>> repeatM = Stream.sequence . Stream.repeat
81+-- >>> replicateM n = Stream.sequence . Stream.replicate n
82+-- >>> fromListM = Stream.sequence . Stream.fromList
83+-- >>> fromFoldableM = Stream.sequence . Stream.fromFoldable
84+-- >>> fromIndices f = fmap f $ Stream.enumerateFrom 0
78-- Also see "Streamly.Internal.Data.Stream" module for many more @Pre-release@
86-- Also see "Streamly.Internal.Data.Stream" module for many more @Pre-release@
79-- combinators. See the <https://github.com/composewell/streamly-examples>
87-- combinators. See the <https://github.com/composewell/streamly-examples>
80-- repository for many more real world examples of stream programming.
88-- repository for many more real world examples of stream programming.