@@ -374,8 +374,12 @@ timeout = undefined
374374-- From Generator functions
375375------------------------------------------------------------------------------
376376
377+-- XXX we can remove it and recommend the definition in terms of enumerate and
378+-- map. Check performance equivalence.
379+--
377380-- |
378381-- @
382+-- fromIndices f = fmap f $ Stream.enumerateFrom 0
379383-- fromIndices f = let g i = f i \`cons` g (i + 1) in g 0
380384-- @
381385--
@@ -383,7 +387,7 @@ timeout = undefined
383387-- applied on the corresponding index. Index starts at 0.
384388--
385389-- @
386−-- > S.toList $ S.take 5 $ S.fromIndices id
390+-- > Stream.toList $ Stream.take 5 $ Stream.fromIndices id
387391-- [0,1,2,3,4]
388392-- @
389393--
@@ -395,6 +399,7 @@ fromIndices = fromStreamS . S.fromIndices
395399--
396400-- |
397401-- @
402+-- fromIndicesM f = Stream.mapM f $ Stream.enumerateFrom 0
398403-- fromIndicesM f = let g i = f i \`consM` g (i + 1) in g 0
399404-- @
400405--