Liking cljdoc? Tell your friends :D

futurama.util


class-satisfies?clj

(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.
sourceraw docstring

instance-satisfies?clj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close