That's why Jim mentions if-let and when-let in combination with some, they both detect if results are nil.
On Sunday, December 2, 2012 10:11:24 PM UTC+1, Ben wrote: > > On Sun, Dec 2, 2012 at 12:48 PM, Jim - FooBar(); > <jimpi...@gmail.com<javascript:>> > wrote: > > Its perfectly fine to use some as a predicate as far as I know...works > > excellent with if-let/when-let - what is the problem? > > There might be cases in which it matters whether something returns nil > (as 'some' does) or false (as 'some?' would). ('keep', for instance, > unlike 'filter', discriminates between nil and false.) > > -- > Ben Wolfson > "Human kind has used its intelligence to vary the flavour of drinks, > which may be sweet, aromatic, fermented or spirit-based. ... Family > and social life also offer numerous other occasions to consume drinks > for pleasure." [Larousse, "Drink" entry] > -- 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