This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-04
Channels
- # announcements (9)
- # babashka (5)
- # beginners (50)
- # calva (13)
- # clj-kondo (11)
- # clojure (30)
- # clojure-australia (1)
- # clojure-china (1)
- # clojure-europe (4)
- # clojure-filipino (1)
- # clojure-hk (1)
- # clojure-indonesia (1)
- # clojure-japan (1)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-norway (2)
- # clojure-sg (1)
- # clojure-taiwan (1)
- # clojurescript (32)
- # conjure (2)
- # honeysql (1)
- # hyperfiddle (8)
- # jobs-discuss (9)
- # leiningen (2)
- # malli (3)
- # off-topic (21)
- # reitit (4)
- # shadow-cljs (10)
- # sql (3)
- # squint (17)
- # tools-deps (14)
Hi, is there any way to check var?
(m/validate [:map
[:my-fn symbol?]] {:my-fn 'clojure.core/identity}) ;; obviously true
(m/validate [:map
[:my-fn var?]] {:my-fn (requiring-resolve 'clojure.core/identity)}) ;; expected true but invalid schema
As docs, https://github.com/metosin/malli#mallicorepredicate-schemas doesn’t support var?
. How do I validate var?
?Ahh that’s so useful ! thank you!