On Nov 17, 4:22 pm, samppi <[EMAIL PROTECTED]> wrote:
> Inhttp://groups.google.com/group/clojure/browse_thread/thread/62140a28b...,
> the following example was given:
>
> (defn test1 [{x :x, y :y, :or {:y 3}}]
>         [x y])
> (test1 {:x 2}) => [2 3]
>
> But this doesn't work on the latest Clojure from Subversion I just
> got:
>
> (test1 {:x 2}) => [2 nil]
>
> Was this a feature that was removed? Or should it work?

That's a typo in the original, should be:

(defn test1 [{x :x, y :y, :or {y 3}}]
  [x y])

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