(instance? (RT/classForName "[B") thing) :bytes
(instance? InputStream thing) :input-stream
- (string? thing) :string
+ (integer? thing) :integer
+ (string? thing) :string
;; Check for various sequency things. Yes. This is tedious. But as long
;; as we don't have a Seqable protocol, we can't do much about it.
(.isArray (class thing)))
- ;; Similar for the numbers.
- (or (instance? Byte thing)
- (instance? Short thing)
- (instance? Integer thing)
- (instance? Long thing))
;; The following methods should be pretty straight-forward.