Hi Roelof,

> I understand that part.
> 
> so we have (map second-item collection)  where second-item and collection are 
> arguments of map.

Yep.

> Then we have second-item ( fn [x] (get x 2)   
> which can be read as :
> 
> ( second-item [x] (get x 2)  .

This makes no sense to me. second-item is a fn. In this syntax, (malformed 
because of a missing closing bracket), you are calling second-item with [x] and 
(get x 2), without having defined x.

> in the map there is only ( map second-item collection)
> 
> or is the collection a argument of second-item and a argument of map.

No. second-item and collections are the arguments of map. map will call 
second-item for each element in coll. map’s job is to “pull apart” the 
collection, element by element, pass it to f, and give you the result back.

hth
lvh

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to