A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
17
Task/Loops-Nested/Haskell/loops-nested-2.hs
Normal file
17
Task/Loops-Nested/Haskell/loops-nested-2.hs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
mij :: [[Int]]
|
||||
mij = takeWhile(not.null). unfoldr (Just. splitAt 5) $
|
||||
[2, 6, 17, 5, 14, 1, 9, 11, 18, 10, 13, 20, 8, 7, 4, 16, 15, 19, 3, 12]
|
||||
|
||||
*Main> mapM_ (mapM_ print) $ taskLLB 20 mij
|
||||
2
|
||||
6
|
||||
17
|
||||
5
|
||||
14
|
||||
1
|
||||
9
|
||||
11
|
||||
18
|
||||
10
|
||||
13
|
||||
20
|
||||
Loading…
Add table
Add a link
Reference in a new issue