Deep nested update, struct/map and lists?

Something like this (some additional background)?

If a key is a function, the function will be invoked passing three arguments, the operation (:get_and_update), the data to be accessed, and a function to be invoked next.

Documentation Example

Creating that function can be a bit of a mind bender.

Looked at Access.at/1?

2 Likes