Access behavior / protocol / macro for custom type

If you look at put_in, update_in or pop_in those brakets could also invoke different callbacks of the behaviour besides fetch/2. As you’ve noticed those brackets are a way for you to supply a key to be used. That key can be any term, but as you’ve seen it needs to be one term not many.