Re: Request for a hint

2012-11-21 Thread Milen Ivanov
Dear Mr. Griefer, Thank you! I get it now after reading few more pages. Even the font is different than that of real code and, moreover, it is recommended that the reader gets the code from book's webpage. So, I keep on reading... First of all, I paid for the book, LOL, and, second, I need to

Re: Request for a hint

2012-11-17 Thread Russell Whitaker
On Sat, Nov 17, 2012 at 3:11 PM, Charlie Griefer wrote: > For the record, I point out that its not a "bug" specifically because > you will see this many many many many times throughout the book. In > fact, pretty much any time a new function or form is introduced. > > (function-name argument-1 arg

Re: Request for a hint

2012-11-17 Thread Charlie Griefer
For the record, I point out that its not a "bug" specifically because you will see this many many many many times throughout the book. In fact, pretty much any time a new function or form is introduced. (function-name argument-1 argument-2 ... argument-n) This is not real code meant to be pasted

Re: Request for a hint

2012-11-17 Thread Charlie Griefer
On Sat, Nov 17, 2012 at 5:32 PM, Milen Ivanov wrote: > Dear Mr. Chose, > > Thank you for your help! > > So, the "bug" is then in the book. Fine. There's no "bug" in the book. You copied sample code that's meant to show the syntax of using conj directly into the repo, using undeclared values. (c

Re: Request for a hint

2012-11-17 Thread Milen Ivanov
Dear Mr. Chose, Thank you for your help! So, the "bug" is then in the book. Fine. Best Regards, Milen On Saturday, November 17, 2012 7:05:12 PM UTC+2, Baishampayan Ghose wrote: > > Hi Milen, > > The function `conj` "conjoins" an item into a Clojure collection. In your > case, you need to defi

Re: Request for a hint

2012-11-17 Thread Baishampayan Ghose
Hi Milen, The function `conj` "conjoins" an item into a Clojure collection. In your case, you need to define both `coll` and `item` for the example to work. Consider these examples - (conj [1 2 3] 4) (conj '(1 2 3) 4) (conj #{1 2 3} 4) (def coll [1 2 3 4 5]) (def item 6) (conj coll item) etc.

Request for a hint

2012-11-17 Thread Milen Ivanov
Dear All, I am trying to make sense of Closure by reading the book Programming Closure, 2nd Eddition. I persistently get booed at one of the very first lines of code in the book: (conj coll item) The listing (rather short) is below. May I please ask you for some hint because beginner's luck s