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.
Creating that function can be a bit of a mind bender.
Looked at Access.at/1
?