Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -0,0 +1,2 @@
|
|||
{-# LANGUAGE ParallelListComp #-}
|
||||
main = sequence [ putStrLn [x, y, z] | x <- "abd" | y <- "ABC" | z <- "123"]
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
import Data.List
|
||||
main = mapM putStrLn $ transpose ["abd", "ABC", "123"]
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
import Data.List
|
||||
main = mapM putStrLn $ zipWith3 (\a b c -> [a,b,c]) "abc" "ABC" "123"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
import Control.Applicative
|
||||
main = sequence $ getZipList $ (\x y z -> putStrLn [x, y, z]) <$> ZipList "abd" <*> ZipList "ABC" <*> ZipList "123"
|
||||
|
|
@ -1 +0,0 @@
|
|||
main = mapM_ putStrLn $ zipWith3 (\a b c -> [a,b,c]) "abc" "ABC" "123"
|
||||
Loading…
Add table
Add a link
Reference in a new issue