(number? (java.lang.Integer 5))

Per Bothner per@bothner.com
Sun Mar 30 20:04:00 GMT 2008


Yaroslav Kavenchuk wrote:
> #|kawa:19|# (number? (java.lang.Integer 5))
> false
> 
> ???
> How can I detect any number?

You could do:

(instance? (java.lang.Integer 5) java.lang.Number)

or

(java.lang.Number? (java.lang.Integer 5))

I should probably change the definition of number?
to do that.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Kawa mailing list