On Nov 22, 4:20 pm, JMan <[EMAIL PROTECTED]> wrote:
> If you look here:
>
> http://clojure.org/java_interop
>
> you will see the following example:
>
> (doto (new java.util.HashMap) (.put "a" 1) (.put "b" 2))
>
> This produces the following error:
>
> java.lang.IllegalArgumentException: No matching method found: .put
>
> I believe the correct code is:
>
> (doto (new java.util.HashMap) (put "a" 1) (put "b" 2))
>

The doc is correct for the latest SVN. I've updated it with info about
the prior syntax, for those using the last release.

Thanks for the report,

Rich

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