on master help sign in
explain mapM, sequence functions
0911988Shruti_Umat
src/Streamly/Tutorial.hs+2−2
@@ -1263,8 +1263,8 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
1263-- main = (S.'toList' $ fmap show $ S.'fromFoldable' [1..10]) >>= print
1263-- main = (S.'toList' $ fmap show $ S.'fromFoldable' [1..10]) >>= print
1264-- @
1264-- @
1265--
1265--
1266−-- Also see the 'mapM' and 'sequence' functions for mapping actions, in the
1267−-- "Streamly.Prelude" module.
1266+-- Also see functions 'mapM' and 'sequence' from "Streamly.Prelude" module
1267+-- which can map actions concurrently depending on the type of the input stream.
1268
1268
1269-- $applicative
1269-- $applicative
1270--
1270--