This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-08
Channels
- # admin-announcements (3)
- # arachne (1)
- # aws (2)
- # beginners (10)
- # boot (287)
- # cider (5)
- # clara (2)
- # cljs-dev (150)
- # cljsjs (2)
- # clojure (99)
- # clojure-austin (1)
- # clojure-brasil (1)
- # clojure-dev (13)
- # clojure-greece (55)
- # clojure-japan (1)
- # clojure-nl (2)
- # clojure-russia (24)
- # clojure-spec (184)
- # clojure-taiwan (1)
- # clojure-uk (45)
- # clojurescript (55)
- # clojurex (1)
- # cursive (20)
- # datascript (16)
- # datomic (1)
- # devcards (4)
- # events (10)
- # figwheel (1)
- # funcool (7)
- # hoplon (48)
- # immutant (1)
- # jobs (6)
- # lambdaisland (2)
- # lein-figwheel (19)
- # mount (36)
- # off-topic (37)
- # om (16)
- # om-next (17)
- # onyx (29)
- # planck (53)
- # proton (1)
- # pure-frame (1)
- # re-frame (40)
- # reagent (44)
- # remote-jobs (1)
- # ring (2)
- # robots (2)
- # rum (5)
- # slack-help (4)
- # spacemacs (27)
- # specter (82)
- # test-check (18)
- # test200 (1)
- # untangled (17)
See the docstring for var
. It is a special form that takes a symbol that must resolve to a var. function-name
isn’t a var, it’s a local binding
You can do it as a macro through, something like
(defmacro valid-args? [function-name] `(:arglists (meta (var ~function-name))))
That will macroexpand like this
user> (macroexpand '(valid-args? map))
(:arglists (clojure.core/meta (var map)))
And work like:
user> (valid-args? map)
([f] [f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])
I am struggling to understand why I cannot “read” a file using
using a relative path, but it finds the file when I use
. I solved the issue doing this: (io/reader (.getFile (io/resource "bootstrap/accounts.csv")))
, however, I would like to understand the why.