specter 2024-03-27

Hello 👋 Can I do:

(let [some-path [0 1 0 1]]
  (sp/setval some-path sp/NONE some-nested-vector-with-meta-data))
while preserving metadata along the vector hierarchy?

yes, that will preserve metadata

it compiles to keypath which will use assoc under the hood

Ohh I C, only the top vector loses its metadata (I think) More accurate: the changed vector (which is dissoced) loses its meta data