This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-26
Channels
- # admin-announcements (3)
- # beginners (44)
- # boot (48)
- # cljs-dev (2)
- # cljsjs (14)
- # cljsrn (2)
- # clojure (32)
- # clojure-android (1)
- # clojure-nl (1)
- # clojure-portugal (1)
- # clojure-russia (7)
- # clojure-spec (51)
- # clojure-uk (21)
- # clojurescript (9)
- # component (2)
- # cursive (4)
- # emacs (5)
- # funcool (1)
- # hispano (3)
- # hoplon (10)
- # immutant (14)
- # jobs (1)
- # jobs-discuss (4)
- # off-topic (15)
- # om (1)
- # onyx (1)
- # planck (36)
- # re-frame (2)
- # reagent (25)
- # spacemacs (2)
- # spirituality-ethics (10)
- # untangled (2)
- # vim (8)
- # yada (1)
im having problems passing in a string to a function. The println on that string appears to be "nil" but when i run println on the string outside of the function the string is actually a string. Anyone have any insight here?
did you solve?
Why not just use (println _var-name_)
? The way you’re doing it isn’t idiomatic. Furthermore you’re not passing anything to println
there.
Right, because you’re not passing it anything in that function call. You mean something like (#(println %) _var-name_)
.
@bfast, why not just pass println
? That’s what it seems to be expecting, looking at the source.
say, I want all the coordinates of the values '2' in my 2D array... should I try to get them with two nested keep-indexed?
akiva, I want to swap out println so I can write it to a file instead of standard out
Because the anonymous function is complete with the closing parens. The results aren’t included inside the form containing the anonymous function so the #()
never sees it.
Hi everyone! I'm using the reloaded workflow. How can I exclude individual namespaces from being reloaded? I have created a file/namespace in my projects 'dev' folder where I put my repl code (using fireplace). I don't want that to be reloaded.
As context: http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded
@andreas-thoelke: (clojure.tools.namespace.repl/disable-reload!)
use that fn on the ns that you dont want to be reloaded
What does :-
mean?
It's just a keyword.
What's the context? Midje?
@seancorfield: ^ the context is this code from #C051WKSP3
ah ok, so just a keyword. so no different then :dash
That's Schema annotations. But yeah, it's just a keyword.
Schema supports arg-name :- Type
in arguments.