This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-27
Channels
- # admin-announcements (9)
- # aws (1)
- # beginners (4)
- # boot (197)
- # cider (38)
- # cljsrn (70)
- # clojure (128)
- # clojure-russia (36)
- # clojurecup (1)
- # clojurescript (86)
- # core-typed (2)
- # css (1)
- # datomic (35)
- # editors-rus (4)
- # hoplon (22)
- # ldnclj (2)
- # mount (19)
- # off-topic (45)
- # om (63)
- # onyx (7)
- # parinfer (8)
- # yada (2)
(defmacro case-split
"Usage: (case-split v
type1 expr1
type2 expr2
...)"
[x & cases]
(cons 'cond
(mapcat (fn [[type expr]]
(list (list (list 'clojure.core.typed/pred type) x) expr))
(partition-all 2 cases))))
Is this an abuse of pred
?