This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-17
Channels
- # architecture (14)
- # aws (4)
- # aws-lambda (2)
- # beginners (66)
- # cider (63)
- # clara (39)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (111)
- # clojure-berlin (5)
- # clojure-italy (17)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-uk (93)
- # clojurescript (19)
- # core-async (60)
- # cursive (13)
- # datomic (22)
- # devcards (2)
- # dirac (4)
- # duct (44)
- # emacs (18)
- # fulcro (1)
- # graphql (10)
- # jobs (13)
- # jobs-discuss (27)
- # lumo (1)
- # mount (1)
- # off-topic (22)
- # om-next (1)
- # onyx (16)
- # philosophy (3)
- # planck (4)
- # precept (34)
- # re-frame (66)
- # reagent (6)
- # ring (2)
- # ring-swagger (1)
- # shadow-cljs (333)
- # specter (8)
- # tools-deps (4)
- # vim (15)
- # yada (1)
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))
4
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