specter

joshcho 2023-05-05T07:19:16.881679Z

I am looking for the dual of setval and NONE usage. I have

(setval [MAP-VALS #(not (< 0 %))] NONE {:a 1 :b -1 :c 3})
The not and the NONE are clunky, and it'd be nice if there was a way to select only on those, but also keep the rest of the structure.

nathanmarz 2023-05-05T20:09:43.152649Z

This is a nicer way to write that: (setval [MAP-VALS (pred< 0)] NONE {:a 1 :b -1 :c 3})