Skip to content

Commit

Permalink
Update src/fun/builtins.bend
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Abril <[email protected]>
  • Loading branch information
Sipher and developedby authored Aug 23, 2024
1 parent ae16b30 commit 808bf11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fun/builtins.bend
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ List/filter (List/Cons x xs) pred =
(List/filter xs pred)
}

## Recursively sums all elements in a list of natural numbers.
## Recursively sums all elements in a list of native numbers.
# If the list is empty, returns 0.
# List/sum (xs: List(n24)) -> n24
# List/sum (xs: List(Number(a))) -> Number(a)
List/sum (List/Nil) = 0
List/sum (List/Cons x xs) = (+ x (List/sum xs))

Expand Down

0 comments on commit 808bf11

Please sign in to comment.