1.3.0 permalink Arrow_down_16x16

bases

clojure.core

  • (bases c)
Returns the immediate superclass and direct interfaces of c, if any

1 Example top

  • user=> (import 'java.io.File)
    
    user=> (bases java.io.File)
    (java.lang.Object java.io.Serializable java.lang.Comparable)
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:4845 top

(defn bases
  "Returns the immediate superclass and direct interfaces of c, if any"
  {:added "1.0"
   :static true}
  [^Class c]
  (when c
    (let [i (.getInterfaces c)
          s (.getSuperclass c)]
      (not-empty
       (if s (cons s i) i)))))
Vars in clojure.core/bases:
Used in 0 other vars

Comments top

No comments for bases. Log in to add a comment.