I always end up doing (filter identity '(:fred :mary nil :sue))
(remove nil? ...) is actually more clear.  I'll try to remember that.

On Tue, Feb 24, 2009 at 10:42 PM, Timothy Pratley
<timothyprat...@gmail.com>wrote:

>
> user=> (remove nil? '(:a nil nil :b :a))
> (:a :b :a)
>
> On Feb 25, 2:38 pm, Sean <francoisdev...@gmail.com> wrote:
> > I've got the following list
> >
> > (:a nil nil :b :a)
> >
> > I want to call a "nil-killer" function, and get the following list
> >
> > (:a :b :a)
> >
> > How do I go about this?  Could someone post a quick example?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to