On Thu, May 1, 2014 at 3:51 PM, Roelof Wobben <rwob...@hotmail.com> wrote:

>
>
> Op donderdag 1 mei 2014 15:20:38 UTC+2 schreef Erlis Vidal:
>
>> I think the confusion is because they used multiple values when comparing
>> the equality
>>
>> (= (__ (sort (rest (reverse [2 5 4 1 3 6]))))
>>    (-> [2 5 4 1 3 6] (reverse) (rest) (sort) (__))
>>    5)
>>
>> This can be seen as :
>> (def A (__ (sort (rest (reverse [2 5 4 1 3 6])))))
>> (def B (-> [2 5 4 1 3 6] (reverse) (rest) (sort) (__)))
>>
>> Then the 4Clojure exercise can be written as:
>>
>> (= A B 5)
>>
>> Do not feel bad, this took me some time to realize 5 was not part of B.
>>
>
> No problem. But still it does not make any sense.
>
> If I do it right. this schould be the output of the functions
>
> A [ 1 2 3 4 5]
> B [ 1 2 3 4 5]
> (= A B 5) --> [1,2,3,4,5] = [1,2,3,4,5] = 5 and this is not true.
>
   This is the output when you don't write the function to replace __.


>
>
>
>>
>>
>>
>> On Thu, May 1, 2014 at 7:52 AM, Roelof Wobben <rwo...@hotmail.com> wrote:
>>
>>> Is this a nice explanation about macros : http://bryangilbert.com/code/
>>> 2013/07/30/anatomy-of-a-clojure-macro/
>>>
>>> or is there a better one for a beginner.
>>>
>>> Roelof
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> 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.
>

-- 
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