Haskell LanguagezipWithM


Introduction

zipWithM is to zipWith as mapM is to map: it lets you combine two lists using a monadic function.

From the module Control.Monad

Syntax

  • zipWithM :: Applicative m => (a -> b -> m c) -> [a] -> [b] -> m [c]