You're viewing version 1.2.0 of bases. The latest stable version of Clojure Core is 1.3.0.
1.2.0 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:4380 top

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

Comments top

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