We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16529b0 commit 347245eCopy full SHA for 347245e
src/Data/Traversable.purs
@@ -1,7 +1,7 @@
1
module Data.Traversable where
2
3
import Prelude
4
-import Data.Array ((:))
+import Data.Array ((:), zipWith)
5
import Data.Either
6
import Data.Eq
7
import Data.Foldable
@@ -45,3 +45,7 @@ instance traversableTuple :: Traversable (Tuple a) where
45
46
for :: forall a b m t. (Applicative m, Traversable t) => t a -> (a -> m b) -> m (t b)
47
for x f = traverse f x
48
+
49
+zipWithA :: forall m a b c. (Applicative m) => (a -> b -> m c) -> [a] -> [b] -> m [c]
50
+zipWithA f xs ys = sequence (zipWith f xs ys)
51
0 commit comments