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 o
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
[]
Tassilo Horn wrote:
> Erebus Mons writes:
>
>> I am reading in a csv-file, and then transform the attributes into a
>> hash-map:
>>
>>
__
>> name,property1,property2,
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 clas
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
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:
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)
>
>
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
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