Wierd, also on 1.5.1 I see the same output as 1.6.0.

So there is a error in the page or the  test are not checking it properly . 

Pity, this is a way I like to learn. 

Roelof


Op maandag 27 oktober 2014 18:03:29 UTC+1 schreef Roelof Wobben:

> Thanks.
>
> I did a peek at the answer and it seems that this one do make it work. 
>
> (defn old-book->new-book [book] 
>  (let [authors (get book :authors)] 
>  (assoc book :authors (set authors)))) 
>
> Roelof
>
> Edit 1 : I think I found it. The course is in 1.5.1 and im not trying it 
> in 1.6.0 
>
>
>
>
> Op maandag 27 oktober 2014 16:55:32 UTC+1 schreef Gary Verhaegen:
>
>> On Monday, 27 October 2014, Roelof Wobben <rwob...@hotmail.com> wrote:
>>>
>>> I expected the outcome : *octavia*
>>> but I see the output : [{:death-year 2006, :name "
>>> Octavia E. Butler", :birth-year 1947}]      
>>>
>>> Roelof
>>>
>>
>> I see. You will not get octavia as an outcome. The presentation in 
>> iloveponies seems to be slightly misleading. In the evaluation model for 
>> Clojure (and the vast majority of peogramming languages), arguments are 
>> evaluated first, and the language does not keep track of which expression 
>> produced a value. What is important to understand is that octavia has been 
>> resolved (repmaced by its associated value) even before the value is bound 
>> to wild-seed.
>>
>> If this is not clear for you, I'd say you've reached the limit of 
>> hands-on learning and it's time for some theory. You really need to 
>> understand the evaluation model before going further.
>>
>> A free resource I'd recommend for that is Aphyr's tutorial:
>>  http://aphyr.com/posts/301-clojure-from-the-ground-up-welcome
>>
>> If you have any money available, I would highly recommend Brian Marick's 
>> Functional Programming for the Object Oriented Programmer. If you have no 
>> experience with OOP, you will probably have trouble understanding the 
>> points of chapters 4 and on, but even then, I think the book is worth 
>> buying for the first three chapters, which have a great explanation of 
>> Clojure's evaluation model.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to