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? ![]()


















