File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2263,8 +2263,7 @@ defmodule Kernel do
2263
2263
iex> get_in(users, ["john", :age])
2264
2264
27
2265
2265
2266
- In case any of the entries in the middle returns `nil`, `nil` will
2267
- be returned as per the `Access` module:
2266
+ In case keys any of the keys returns `nil`, `nil` will be returned:
2268
2267
2269
2268
iex> users = %{"john" => %{age: 27}, "meg" => %{age: 23}}
2270
2269
iex> get_in(users, ["unknown", :age])
@@ -2280,9 +2279,6 @@ defmodule Kernel do
2280
2279
* a function to be invoked next
2281
2280
2282
2281
This means `get_in/2` can be extended to provide custom lookups.
2283
- The downside is that functions cannot be stored as keys in the accessed
2284
- data structures.
2285
-
2286
2282
In the example below, we use a function to get all the maps inside
2287
2283
a list:
2288
2284
You can’t perform that action at this time.
0 commit comments