This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-12
Channels
- # bangalore-clj (4)
- # beginners (77)
- # boot (71)
- # cider (10)
- # clara (1)
- # cljs-dev (52)
- # cljsjs (28)
- # cljsrn (1)
- # clojure (390)
- # clojure-dev (5)
- # clojure-india (1)
- # clojure-italy (5)
- # clojure-nl (24)
- # clojure-poland (4)
- # clojure-russia (123)
- # clojure-spec (71)
- # clojure-taiwan (2)
- # clojure-uk (8)
- # clojurescript (236)
- # core-matrix (6)
- # cursive (19)
- # datomic (16)
- # defnpodcast (2)
- # editors (1)
- # emacs (36)
- # garden (2)
- # hoplon (5)
- # jobs (1)
- # jobs-discuss (10)
- # juxt (47)
- # luminus (4)
- # lumo (6)
- # off-topic (207)
- # om (1)
- # onyx (20)
- # pedestal (40)
- # perun (2)
- # re-frame (8)
- # reagent (48)
- # ring (2)
- # ring-swagger (2)
- # specter (13)
- # unrepl (89)
- # vim (6)
Is there anyway I can use selected? with a selector takes multiple values. for example def data [{:a 1 :b 1 :c 1} {:a 2 :b 1 :c 1}]
@snacks for that I would just use an anonymous function
#(= (:a %) (:b %))
(def data [{:a 1 :b 1 :c "biubiu"} {:a 1 :b 2 :c 3}])
(select [ALL #(= (:a %) (:b %)) :c] data)
;; => ["biubiu"]
@snacks from "introspect"
it was also released before clojure.spec was a thing, would choose a different name if I made it today
@souenzzo no, my company is called Red Planet Labs
no website yet