explain mapM, sequence functions
commit0911988b4e14de0c0a5394ae277489161219f44d
authorShruti_Umat <111701027@smail.iitpkd.ac.in>
dateMon 4 May 2020, 10:43 (6 years ago)
parent3957cee
src/Streamly/Tutorial.hs+2−2
@@ -1263,8 +1263,8 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
12631263-- main = (S.'toList' $ fmap show $ S.'fromFoldable' [1..10]) >>= print
12641264-- @
12651265--
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.
12681268
12691269-- $applicative
12701270--