redplanetlabs / specter

Clojure(Script)'s missing piece
Apache License 2.0
2.51k stars 102 forks source link

How to insert map at the end of a vector? #304

Closed hermann-p closed 3 years ago

hermann-p commented 3 years ago

I am trying

(setval [:items END] {:foo "bar} {:items []}
;; {:items [[:foo "bar]]

But I would like (and expect) the result to be

;; {:items [{:foo "bar}]

What am I doing/understanding wrong?

nathanmarz commented 3 years ago

You're looking for AFTER-ELEM. END navigates to the empty subsequence.