specter

Latest version: 1.1.3
nathanmarz 2019-01-01T21:37:23.018900Z

@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}]]

johanatan 2019-01-01T21:38:22.019500Z

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

johanatan 2019-01-01T21:39:05.019900Z

(For either the collection or the navigation)

nathanmarz 2019-01-01T22:01:04.020500Z

MAP-KEYS navigates you to each key of the map

nathanmarz 2019-01-01T22:01:17.020900Z

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

nathanmarz 2019-01-01T22:01:36.021400Z

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