I have cond-path with a fallback value. Currently I'm writing:
(s/cond-path
pred-1? [...]
pred-2? [...]
(constantly true) [...])
Is there a more elegant way to write this?@weavejester I would use STAY for the final handler
conditionals in Specter paths aren't predicates exactly, but based on whether that path navigates anywhere
so STAY is "true" in that context, and STOP is "false"
Ahhhhh, I see! That makes a lot of sense.
I still don't have a good intuition about writing specter, but I think I'm slowly getting there.