Fork me on GitHub
#specter
<
2018-05-17
>
nathanmarz00:05:59

you could make it slightly more efficient with a version of every? that uses reduce

nathanmarz00:05:25

then you could use traverse: (every-reduce? #(= 2 %) (traverse [MAP-VALS] coll))

nathanmarz00:05:38

traverse doesn't materialize any intermediate data structure

nathanmarz00:05:05

on second thought this is a much better approach:

(not (selected-any? [MAP-VALS #(not= 2 %)] coll))

1
montanonic00:05:54

ahhh, nice. That's a good one

Casey13:05:32

Are there any projects with source available that use specter heavily? Would like to see how specter is used at large in a project

nathanmarz14:05:09

@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]