On Mon, Jun 13, 2011 at 2:36 AM, Meikel Brandmeyer <[email protected]> wrote:
>> Needs to be (defn filter-keys [coll ks] ...)
> I disagree. Clojure puts sequence arguments usually last. See filter, remove, 
> take-while, ... I would exchange the arguments and follow the usual Clojure 
> style.

The OP specifically asked for (filter-keys input [:a :b]) - I was
merely pointing out your solution had the arguments the wrong way
round _for his question_.

I do agree that the usual practice is to have the collection last and
actually kept doing that while I was trying to solve his puzzle - and
then I'd run his example and it wouldn't work, until I swapped the
arguments :)
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.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 [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