such.types

Type (and “type-like”) predicates not included in clojure.core.

big-decimal?

(big-decimal? x)

Is x a Java BigDecimal?

classic-map?

(classic-map? x)

map? will return true for Records. This returns true only for hashmaps and sorted maps.

extended-fn?

(extended-fn? x)

fn? does not consider multimethods to be functions. This does.

linear-access?

(linear-access? x)

Is the collection one where you can’t do better than linear access?

multi?

(multi? x)

Was x created with defmulti?

named?

(named? x)

Will name work on x? Two cases: It implements the Named protocol OR it’s a string.

namespace?

(namespace? x)

Is x a namespace?

regex?

(regex? x)

Is x a regular expression (a Java Pattern)?

stringlike?

(stringlike? x)

Is x a string or a regex?