> Direct references to methods don't work in higher-order functions  
> for some reason.

The reason is simply that Java methods are not first-class objects in  
Clojure.

Clojure functions are classes that implement IFn, and thus can be  
passed around as objects. That's all higher-order functions are.

The reason the anonymous function technique works is that it creates a  
class that implements IFn, which just happens to call the Java method  
you want.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to