From 39d5b221f7c28e76262fc7e8b0746152a46c97c5 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Thu, 8 Dec 2022 17:48:20 +0100 Subject: Make list.at return an error given sub-zero index --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') 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 -- cgit v1.2.3