How to implement a multiple tree?

An interesting alternative solution. To make it more readable, I’d suggest writing it as

keys = 
  path
  |> String.split("/")
  |> Enum.map(&Access.key(&1, %{}))
put_in(tree, keys, %{})

Cool!

I do have trouble understanding what you mean with the shrugging emoji. Could you elaborate? :slight_smile: