Is there any operator in Haskell that collapses a list of actions with (>>)?
1 answer
You can simply use for this: mapM_ :: Monad m => (a -> m b) -> [a] -> m ()
mapM_ test [arg1,arg2,arg3,arg4]
Or if you really want to write it infix:
test `mapM_` [ arg1
, arg2
, arg3
, arg4
]
+7
source to share