[Proposal] Access.at/2

94 views
Skip to first unread message

Anderson Cook

unread,
Aug 28, 2023, 4:37:19 PM8/28/23
to elixir-lang-core
Under the hood `Access.at` calls `Enum.at` which takes an optional default. I propose that it accept the same optional default, much like `Access.key`. This should be a minimally-invasive addition.

José Valim

unread,
Sep 3, 2023, 10:45:22 AM9/3/23
to elixir-l...@googlegroups.com
A PR is welcome!

On Mon, Aug 28, 2023 at 10:37 PM Anderson Cook <anders...@gmail.com> wrote:
Under the hood `Access.at` calls `Enum.at` which takes an optional default. I propose that it accept the same optional default, much like `Access.key`. This should be a minimally-invasive addition.

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/f4f0bb22-93bd-48f3-95ad-18860d902546n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages