Thanks, Rich. That's easier on the eyes.

Also, that set trick is pretty cool!


Paul

On Thu, Oct 16, 2008 at 5:20 PM, Rich Hickey <[EMAIL PROTECTED]> wrote:

> I've been meaning to add remove for a while. It's certainly more
> general than compact, and (filter (complement ...)) gets cumbersome
> and more difficult to understand.
>
> Done:
>
> (remove nil? [1 2 nil 3 false 4 5])
> -> (1 2 3 false 4 5)
>
> Everyone should be aware of the set trick for both filter and remove
> with specific values:
>
> (remove #{2 4} [1 2 nil 3 false 4 5])
> -> (1 nil 3 false 5)
>
> 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