object?
tests whether the provided forms are objects
Usage:
(object? form+) (!object? form+) (is-object form)
If all forms evaluate to an object (hash-map), then this function will return #t (true). The first non-object will result in the function returning #f (false).
An Example
(object? {:name "bill"} {:name "peggy"} [1 2 3])
This example will return #f (false) because the third form is a vector.
Like most predicates, this function can also be negated by prepending the !
character. This means that all the provided forms must not be objects.
(!object? "hello" [1 2 3])
This example will return #t (true).