Re: how do you re-load a clojure library?

2015-03-29 Thread Dan Campbell
them over there. The next time you run a > lein task, it will re-download it. > > Best, > -- > Juvenn Woo > Sent with Sparrow <http://www.sparrowmailapp.com/?sig> > > On Sunday, 29 March, 2015 at 7:43 pm, Dan Campbell wrote: > > > If you wanted to

how do you re-load a clojure library?

2015-03-29 Thread Dan Campbell
If you wanted to sort of 'clean out' a clojar or any contrib, korma or core.async or whatever, how would you do that? In other words, if you wanted a specific library to be re-downloaded and deployed (i.e., refreshed) on your desktop, what command would you run? Or what folders would you clea

How to get the namespace from an external Clojure resourcescript, from Java

2015-03-17 Thread Dan Campbell
Hi, At http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java , they use this clojure source file, from inside the classpath: ; foo.clj(ns user) (defn foo [a b] (str a " " b)) , to demonstrate this code for calling functions in a Clojure so

Re: How do you refer to a previous value of a var, within a loop/recur?

2014-11-24 Thread Dan Campbell
enough. Of course we don't > care what you do when you're working alone and just for yourself. > > On Monday, 24 November 2014, Dan Campbell wrote: > >> Thanks for the input, Plinio. >> >> If the community jumps to the conclusion that I'm arrogant, becau

Re: How do you refer to a previous value of a var, within a loop/recur?

2014-11-24 Thread Dan Campbell
unities in general, but the Clojure community is highly > newcomer-friendly and the other guys who tried to help you, for example, > are high skilled and very busy professionals. In any other community (I'm > cofounder of JS, Clojure and Ruby communities) you woudn't find that go

Re: How do you refer to a previous value of a var, within a loop/recur?

2014-11-23 Thread Dan Campbell
"As long as you’re prepared to be told this every time you show your code to people, that’s up to you." I think you misunderstood the response. On Sun, Nov 23, 2014 at 5:49 PM, Sean Corfield wrote: > On Nov 23, 2014, at 2:41 PM, Dan Campbell wrote: > > Sorry man, but

Re: How do you refer to a previous value of a var, within a loop/recur?

2014-11-23 Thread Dan Campbell
elp or collaborate with you. Deliberately putting up barriers > to communication is a strong incentive for people to pass over your posts - > why should they have to reformat your code just to understand it? > > - James > > On 23 November 2014 at 20:05, Dan Campbell wrote: >

Re: How do you refer to a previous value of a var, within a loop/recur?

2014-11-23 Thread Dan Campbell
gth 1, or a string that > cannot be reduced any further? > > So in that case, something like: > > (defn simplify [expr translations] > (if (= (count expr) 1) > expr > (let [next-expr (reduce-kv str/replace expr translations)] > (if (< (count

How do you refer to a previous value of a var, within a loop/recur?

2014-11-23 Thread Dan Campbell
Hi, I have to loop through a string, consecutively replacing substrings with single characters, one substring at a time. Each time through the loop, I need to use a cond to check that the length of the last replaced string, is shorter than the length of the previous replaced string. So, as an

Clojure Inspector navigation error

2014-08-05 Thread Dan Campbell
In 1.6.0, If you create a mixed nested object, such as ( def nst ( vec '( ( 3 7 22 ) 99 ( 123 18 225 437 ) ) ) ) , and then you inspect the tree representing the object ( inspect-tree nst ) Most of the navigation with the keyboard proceeds fine. However

clojure 1.6 eval from Java

2014-07-22 Thread Dan Campbell
Hi, I'm confused about the new api, with reference to using eval, from a non-clojure jvm app. Are we still supposed to invoke eval from RT.var? That's working fine for me, so far. The new clojure.java.api seems to be relevant only to calling individual functions. My current app just need