Flatten nested map into rows

69 Views Asked by At

In clojure, how can I turn a nested map like this:

{"1" {"1.1" {}
      "1.2" {}}
 "2" {"2.1" {}
      "2.2" {}
      "2.3" {}}}

Into this:

[["1" "1.1"]
 ["1" "1.2"]
 ["2" "2.1"]
 ["2" "2.2"]
 ["2" "2.3"]]

Provided that nesting is not limited

0

There are 0 best solutions below