On Tue, Jun 12, 2012 at 12:28 PM, Tassilo Horn <tass...@member.fsf.org> wrote:
> user> (map #(let [{x 0 y 1 :or {0 -1, 1 -2}} %1]
>             [x y])
>           [[] [10] [10 11]])
> ([nil nil] [10 nil] [10 11])
>
> I had expected it to return ([-1 -2] [10 -2] [10 11]).

It needs to be this:

user=> (map #(let [{x 0 y 1 :or {x -1 y -2}} %]
             [x y])
            [ [] [10] [10 11] [10 11 12] ])

([-1 -2] [10 -2] [10 11] [10 11])
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to