5 lines
109 B
Text
5 lines
109 B
Text
def Sum (xs : list nat) : nat :=
|
|
xs.foldl (+) 0
|
|
|
|
def foo (n : nat) : string :=
|
|
to_string $ Sum (list.iota n)
|