store/[org.clojure/clojure "1.8.0"] clj::clojure.core/satisfies?

Official Documentation

Add notes
Arities
==================================================
   [protocol x]

Docstring
==================================================
  Returns true if x satisfies the protocol

Source

(defn satisfies? 
  "Returns true if x satisfies the protocol"
  {:added "1.2"}
  [protocol x]
  (boolean (find-protocol-impl protocol x)))

Example 1

Edit
(ns foo)

(defprotocol Foo
  (foo [this]))

(defprotocol Bar
  (bar [this]))

(extend java.lang.Number
  Bar
  {:bar (fn [this] 42)})

(extend java.lang.String
  Foo
  {:foo (fn [this] "foo")}
  Bar
  {:bar (fn [this] "forty two")})

(satisfies? Foo "zam") ; => true
(satisfies? Bar "zam") ; => true
(satisfies? Foo 123)   ; => false
(satisfies? Bar 123)   ; => true

Uses on crossclj