aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorIvan Habunek <ivan@habunek.com>2022-12-08 17:48:20 +0100
committerLouis Pilfold <louis@lpil.uk>2022-12-08 16:55:46 +0000
commit39d5b221f7c28e76262fc7e8b0746152a46c97c5 (patch)
tree16711c48b676acbdcebe8288d542731807c92e02 /CHANGELOG.md
parentccd0f0dd912e15b3a4b73c2eb218c9e18c94b353 (diff)
downloadgleam_stdlib-39d5b221f7c28e76262fc7e8b0746152a46c97c5.tar.gz
gleam_stdlib-39d5b221f7c28e76262fc7e8b0746152a46c97c5.zip
Make list.at return an error given sub-zero index
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d921c6f..83b76ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,8 @@
- The `io.debug` function now prints to stderr instead of stdout when using
the Erlang target or running in Node.js (but still uses `console.log`
when running as JavaScript in a browser)
+- The `list.at` function now returns `Error(Nil)` if given index is smaller than
+ zero, instead of returning the first element.
## v0.25.0 - 2022-11-19