git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #471 from purescript/foreachE
3bc5937Phil Freeman
prelude/prelude.purs+5−3
@@ -684,9 +684,11 @@ module Control.Monad.Eff where
684
684
685 foreign import foreachE "function foreachE(as) {\
685 foreign import foreachE "function foreachE(as) {\
686 \ return function(f) {\
686 \ return function(f) {\
687+ \ return function() {\
687− \ for (var i = 0; i < as.length; i++) {\
688+ \ for (var i = 0; i < as.length; i++) {\
688− \ f(as[i])();\
689+ \ f(as[i])();\
690+ \ }\
689− \ }\
691+ \ };\
690 \ };\
692 \ };\
691 \}" :: forall e a. [a] -> (a -> Eff e Unit) -> Eff e Unit
693 \}" :: forall e a. [a] -> (a -> Eff e Unit) -> Eff e Unit
692
694