Re: clojure, not the go to for data science

2015-03-31 Thread Erebus Mons
Joseph Guhlin wrote: Incanter gets your pretty far, especially when combined with Gorilla REPL, but all the tools and features aren't quite there yet, but progress is being made. Incanter is undergoing major change with the migration to core.matrix, and a break in the API. Has anybody of

evaluation order in loading file/project (with leiningen)

2013-09-02 Thread Erebus Mons
Hi, I am trying to find my way around clojure and leiningen. I created a project with lein new, and up to now, all my code is in the src/../core.clj file I have a function that defines functions based on what is read in from a csv-file, in the following format: (defn define-all-properties

Re: stringify the name of an interned function

2013-08-29 Thread Erebus Mons
Tassilo Horn wrote: erebus.m...@gmail.com writes: What am I missing here? Functions don't really have names. A function may be bound to a var, and that has a name (:name metadata, to be precise). That said, since function's get compiled to classes you could twiddle with the class

Re: stringify the name of an interned function

2013-08-29 Thread Erebus Mons
Tassilo Horn wrote: Erebus Mons erebus.m...@gmail.com writes: I am reading in a csv-file, and then transform the attributes into a hash-map: __ name,property1,property2,etc John,drunk,stinks,etc. etc

stringify the name of an interned function

2013-08-28 Thread erebus . mons
Hello, I am new to clojure, and I am trying to define a function that turns a function-name into a string, but I am stuck. Here is what I tried: user (defn some-func [] true) I am looking for a function stringify that would do the following user (stringify some-func) some-func I can

Re: stringify an interned function

2013-08-28 Thread Erebus Mons
Jim wrote: or convert it to a macro and it should work as you hoped :) (defmacro stringify [f] `(- ~f var meta :name str)) Coool! Thank you again! EM HTH, Jim On 27/08/13 13:26, Jim wrote: On 27/08/13 13:13, Jim wrote: (defn stringify

Re: stringify an interned function

2013-08-28 Thread Erebus Mons
Jim wrote: On 27/08/13 10:39, Erebus Mons wrote: I am looking for a function stringify that would do the following user (stringify some-func) some-func (- #'some-func meta :name str) (defn stringify [func] (- func var meta :name str)) This gives me

stringify an interned function

2013-08-27 Thread Erebus Mons
Hello, I am new to clojure, and I am trying to define a function that turns a function-name into a string, but I am stuck. Here is what I tried: user (defn some-func [] true) I am looking for a function stringify that would do the following user (stringify some-func) some-func I can

Re: stringify an interned function

2013-08-27 Thread Erebus Mons
Jim wrote: or convert it to a macro and it should work as you hoped :) (defmacro stringify [f] `(- ~f var meta :name str)) HTH, Cool! That is exactly what I was looking for! Best, EM Jim On 27/08/13 13:26, Jim wrote: On 27/08/13 13:13,