specter

Latest version: 1.1.3
nathanmarz 2018-05-17T00:11:59.000331Z

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

nathanmarz 2018-05-17T00:12:25.000142Z

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

nathanmarz 2018-05-17T00:12:38.000076Z

traverse doesn't materialize any intermediate data structure

nathanmarz 2018-05-17T00:14:05.000096Z

on second thought this is a much better approach:

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

1
montanonic 2018-05-17T00:22:54.000029Z

ahhh, nice. That's a good one

Casey 2018-05-17T13:56:32.000273Z

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

nathanmarz 2018-05-17T14:19:09.000346Z

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

Casey 2018-05-17T14:38:23.000636Z

thanks @nathanmarz