mirror of
https://github.com/github/semantic.git
synced 2024-12-18 20:31:55 +03:00
23 lines
407 B
Haskell
23 lines
407 B
Haskell
g = a b
|
|
g = a b c
|
|
g = a b c d
|
|
|
|
g = Just b
|
|
g = Right b
|
|
g = Example a c d
|
|
g = ()
|
|
|
|
a = [2..]
|
|
a = [2,3..]
|
|
a = [2..9]
|
|
a = [2,3..18]
|
|
|
|
b = [x | x <- xs]
|
|
b = [(x, y) | x <- xs, y <- ys]
|
|
b = [ x | xs <- [ [(10,20),(30,40)], [(50,40),(30,20)] ], (30,x) <- xs ]
|
|
b = [(i,j) | i <- [1,2,3,4],
|
|
j <- [1..10] ]
|
|
b = [ [ (i,j) | i <- [2,4] ] | j <- [5..] ]
|
|
|
|
b = take 7 [ [ (i,j) | i <- [1,2] ] | j <- [1..] ]
|