Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
6
Task/Catamorphism/Standard-ML/catamorphism.ml
Normal file
6
Task/Catamorphism/Standard-ML/catamorphism.ml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
- val nums = [1,2,3,4,5,6,7,8,9,10];
|
||||
val nums = [1,2,3,4,5,6,7,8,9,10] : int list
|
||||
- val sum = foldl op+ 0 nums;
|
||||
val sum = 55 : int
|
||||
- val product = foldl op* 1 nums;
|
||||
val product = 3628800 : int
|
||||
Loading…
Add table
Add a link
Reference in a new issue