Re: stringify the name of an interned function

2013-08-29 Thread Erebus Mons
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,etc >> John,drunk,stinks,etc. >> etc. >> ___

Re: stringify the name of an interned function

2013-08-29 Thread Tassilo Horn
Erebus Mons 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. > __

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 clas

Re: stringify the name of an interned function

2013-08-28 Thread Tassilo Horn
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 name. user> (defn fnname [f]

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