Re: newbie question on binding

2009-01-12 Thread Meikel Brandmeyer
Hi, I'm sorry. I wanted to answer you but it somehow got lost. Am 05.01.2009 um 23:00 schrieb wubbie: Why are there multiple "Logging str" output. As Michael already said, it's because the originial str calls itself recursively. Here is a thread, which explains this in more detail. http:/

Re: newbie question on binding

2009-01-12 Thread Michael Wood
On Tue, Jan 6, 2009 at 12:00 AM, wubbie wrote: > > Hi, > Why are there multiple "Logging str" output. Because str calls itself recursively. > Also in (apply str-orig args), I don't see any args passed at all! I'm not sure what you mean here. The "args" in (apply str-orig args) is the list o

Re: newbie question on binding

2009-01-05 Thread wubbie
Hi, Why are there multiple "Logging str" output. Also in (apply str-orig args), I don't see any args passed at all! Thanks sun On Jan 5, 2:14 pm, Meikel Brandmeyer wrote: > Hi, > > Am 05.01.2009 um 18:35 schrieb wubbie: > > > This example is from clojure site. > > My question is on line 5 an

Re: newbie question on binding

2009-01-05 Thread Meikel Brandmeyer
Hi, Am 05.01.2009 um 18:35 schrieb wubbie: This example is from clojure site. My question is on line 5 and line 6: The confusion is str is a function and here looks like used as a regular variable. Thanks in advance. binding can be used to temporarily assign a different value to a global Var

Re: newbie question on binding

2009-01-05 Thread Christian Vest Hansen
On Mon, Jan 5, 2009 at 6:35 PM, wubbie wrote: > > Hi, > This example is from clojure site. > My question is on line 5 and line 6: > The confusion is str is a function and here looks like used as a > regular variable. The var that is clojure.core/str aka. 'str, points to a function that implement

Re: newbie question on binding

2009-01-05 Thread Randall R Schulz
On Monday 05 January 2009 09:35, wubbie wrote: > Hi, > This example is from clojure site. > My question is on line 5 and line 6: > The confusion is str is a function and here looks like used as a > regular variable. > > Thanks in advance. > Sun > > > (defn loves [x y] > (str x " loves " y)) > (d