(class-satisfies? protocol c)
Checks if protocol
is satisfied by the class
just like Clojure's satisfies?
does internally, but this version
is memoized and thus faster if called multiple times.
Checks if `protocol` is satisfied by the `class` just like Clojure's `satisfies?` does internally, but this version is memoized and thus faster if called multiple times.
(instance-satisfies? protocol x)
Like Clojure's satisfies?
but calls class-satisfies?
when the protocol is not implemented directly.
Like Clojure's `satisfies?` but calls `class-satisfies?` when the protocol is not implemented directly.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close