specter

2024-03-27T13:35:28.224009Z

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?

nathanmarz 2024-03-27T14:09:08.093049Z

yes, that will preserve metadata

nathanmarz 2024-03-27T14:09:17.682909Z

it compiles to keypath which will use assoc under the hood

2024-03-27T14:16:37.626999Z

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