RosettaCodeData/Task/Loop-over-multiple-arrays-s.../Haskell/loop-over-multiple-arrays-s...

3 lines
143 B
Haskell

import Control.Applicative
main = sequence $ getZipList $ (\x y z -> putStrLn [x, y, z]) <$> ZipList "abd" <*> ZipList "ABC" <*> ZipList "123"