On Sunday 28 December 2008 09:35, Mark Volkmann wrote:
> Can you explain what is happening in the collision? function?
> I don't think I've seen % used outside the context of an anonymous
> function.
To my eye, those uses of % _are_ within an anonymous function:
(defn collision? [{[b] :body} a]
(every? #(<= (- (a %) 10) (b %) (+ 10 (a %))) [0 1]))
Randall Schulz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---