Map.put_in_path should have the interface - Map.put_in_path(map, path, value, options) - Options: - [ ] `fun` a function with arguments ( - `:create_path, parents, key` -> map - `:create_value, parents, cur_value` -> map - [ ] `{:create_value, fun}` where fun accepts `parents, cur_value` as arguments and returns `value` - [ ] `{:create_path, fun}` where fun accepts `parents, key as arguments` and returns the path element's value (`%{}` by default) - [ ] `:replace`: replaces the last element this is the **default** - [ ] `:make_and_append_to_list` - [ ] `make_and_prepend_to_list` - [ ] `:append_list` - [ ] `:prepend_list`
Map.put_in_path should have the interface
funa function with arguments (:create_path, parents, key-> map:create_value, parents, cur_value-> map{:create_value, fun}where fun acceptsparents, cur_valueas arguments and returnsvalue{:create_path, fun}where fun acceptsparents, key as argumentsand returns the path element's value (%{}by default):replace: replaces the last element this is the default:make_and_append_to_listmake_and_prepend_to_list:append_list:prepend_list