Fork me on GitHub
#specter
<
2019-01-01
>
nathanmarz21:01:23

@johanatan just use multiple collect calls:

(select [ALL (collect-one FIRST) LAST ALL (collect-one FIRST) LAST] {:a {:b {:c :d}}})
;; => [[:a :b {:c :d}]]

johanatan21:01:22

Ah, I guess I’m confused why you can’t use MAP-KEYS?

johanatan21:01:05

(For either the collection or the navigation)

nathanmarz22:01:04

MAP-KEYS navigates you to each key of the map

nathanmarz22:01:17

so navigating MAP-KEYS again will navigate you to the keys of the keys

nathanmarz22:01:36

since the first set of keys are keywords you get that error