on master help sign in
Export concatMapBy
commit07f6c8aabaa1a9a247a27420d646ff69b2ef5765 authorHarendra Kumar <harendra.kumar@gmail.com> dateTue 28 May 2019, 01:46 (7 years ago) parentfd3d4e5
2 files changed+9
src/Streamly/Prelude.hs+1 src/Streamly/Streams/StreamK/Type.hs+8
src/Streamly/Prelude.hs+1
@@ -431,6 +431,7 @@ module Streamly.Prelude
431431
432432 , concatMapM
433433 , concatMap
434+ , K.concatMapBy
434435 -- , interposeBy
435436 -- , intercalate
436437
src/Streamly/Streams/StreamK/Type.hs+8
@@ -883,6 +883,14 @@ bindWith par m1 f = go m1
883883-- XXX do we need specialize to IO?
884884-- XXX can we optimize when c and a are same, by removing the forall using
885885-- rewrite rules with type applications?
886+
887+-- | Perform a 'concatMap' using a specified concat strategy. The first
888+-- argument specifies a merge or concat function that is used to merge the
889+-- streams generated by the map function. For example, the concat function
890+-- could be 'serial', 'parallel', 'async', 'ahead' or any other zip or merge
891+-- function.
892+--
893+-- @since 0.7.0
886894{-# INLINE concatMapBy #-}
887895concatMapBy
888896 :: IsStream t