Try using Pathex.at/3 like this
Pathex.at(stuff, path(:key2) ~> star() ~> matching(%{foo3: _}), &Map.take(&1, [:foo, :foo2]))
Try using Pathex.at/3 like this
Pathex.at(stuff, path(:key2) ~> star() ~> matching(%{foo3: _}), &Map.take(&1, [:foo, :foo2]))