you could make it slightly more efficient with a version of every?
that uses reduce
then you could use traverse
: (every-reduce? #(= 2 %) (traverse [MAP-VALS] coll))
traverse
doesn't materialize any intermediate data structure
on second thought this is a much better approach:
(not (selected-any? [MAP-VALS #(not= 2 %)] coll))
ahhh, nice. That's a good one
Are there any projects with source available that use specter heavily? Would like to see how specter is used at large in a project
@ramblurr not that I'm aware of, but at the end of this presentation I showed some of the ways I use it in production for manipulating dags https://www.youtube.com/watch?v=VTCy_DkAJGk]
thanks @nathanmarz