On Wed, Jan 28, 2009 at 11:13 AM, Frantisek Sodomka <fsodo...@gmail.com> wrote:
>
> Hello all!
> During writing tests for type predicates, I noticed that these -
> possibly useful - predicates are not in clojure.core:
> boolean?
> character?
> regex?
> array?

I'd also like function? and macro? as an alternative to checking the
metadata for :macro set to true.

> Since this is correct:
> user=> (= () [])
> true
>
> Shouldn't these be also 'true'?
> user=> (= {} [])
> false
> user=> (= {} #{})
> false
> user=> (= {} ())
> false
> user=> (= #{} [])
> false
> user=> (= #{} ())
> false

-- 
R. Mark Volkmann
Object Computing, Inc.

--~--~---------~--~----~------------~-------~--~----~
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