Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
5
Task/Catamorphism/Haskell/catamorphism.hs
Normal file
5
Task/Catamorphism/Haskell/catamorphism.hs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
nums = [1..10]
|
||||
|
||||
summation = foldl (+) 0 nums
|
||||
product = foldl (*) 1 nums
|
||||
concatenation = foldr (\num s -> show num ++ s) "" nums
|
||||
Loading…
Add table
Add a link
Reference in a new issue