On 6 Jul 2020, 11:40 +0100, Henrik N <[email protected]>, wrote: > > # Explodes in the same way. > iex(22)> get_in([%{key: "value"}], [Access.at(1), Access.key!(:key)]) > ** (FooError) index 1 not found in: [%{key: "value"}]. Its highest index is 0.
Oops, this example should have used `Access.at!` too, of course. And I probably didn’t use “nil safe” quite correctly in the proposal. But hopefully the idea comes across all the same. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/a90dd8dc-82f6-455c-bbe4-88de84b1e9c2%40Spark.
