# How to implement a multiple tree?

**URL:** <https://forum.elixirforum.com/t/how-to-implement-a-multiple-tree/24668>\
**Category:** Questions\
**Tags:** tree\
**Created:** [August 14, 2019, 9:58am UTC](https://forum.elixirforum.com/t/how-to-implement-a-multiple-tree/24668 "2019-08-14T09:58:45Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mudasobwa](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mudasobwa/32/41119_2.png) [@mudasobwa](https://forum.elixirforum.com/u/mudasobwa)\
**Post date:** [August 14, 2019, 4:49pm UTC](https://forum.elixirforum.com/t/how-to-implement-a-multiple-tree/24668/9 "2019-08-14T16:49:28Z")

</div>

> [@Qqwy](#):
>
> Turns a path like `"a/b/c"` into a nested map of maps like `%{"a" => %{"b" => %{"c" => %{}}}}`

```elxiir
put_in(%{}, Enum.map(String.split("a/b/c", "/"), &Access.key(&1, %{})), %{})
#⇒ %{"a" => %{"b" => %{"c" => %{}}}}

```

🤷‍♂️

---

_[View the full topic](https://forum.elixirforum.com/t/how-to-implement-a-multiple-tree/24668)._
