Fork me on GitHub
#specter
<
2023-05-05
>
joshcho07:05:16

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.

nathanmarz20:05:43

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