diff options
author | inoas <mail@inoas.com> | 2023-01-31 15:02:24 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-02-01 17:29:12 +0000 |
commit | 50862d1acc5c74fbf8de2b46f35c17c9a49057a4 (patch) | |
tree | 7c223d9114484c05293cb4286cafc089e55e2c9d /CHANGELOG.md | |
parent | 67e9cf8ea21ac829612e6e0ce2488c4748667a2a (diff) | |
download | gleam_stdlib-50862d1acc5c74fbf8de2b46f35c17c9a49057a4.tar.gz gleam_stdlib-50862d1acc5c74fbf8de2b46f35c17c9a49057a4.zip |
product-of-empty-list-of-numbers-could-return-1
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e7251eb..8454f01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ - The `list` module gains the `group` function. - The `dynamic` module is able to decode simple JavaScript objects to maps. So, the behaviour of the `field` and `object` functions are consistent. +- For a given empty list as an argument `int.product` now returns `1` instead + of `0` and `float.product` now returns `1.0` instead of `1.0`. This mimicks + the behavior of Elixir's `Enum.product/1`. ## v0.26.0 - 2023-01-12 |