1.3.0 permalink Arrow_down_16x16

methods

clojure.core

  • (methods multifn)
Given a multimethod, returns a map of dispatch values -> dispatch fns

1 Example top

  • user=> (methods print-dup) 
      
    {nil #<core$fn__4813 clojure.core$fn__4813@1e929ba3>, java.lang.Class #<core$fn__4905 clojure.core$fn__4905@4d8ef117>, java.lang.Integer #<core$fn__4887 clojure.core$fn__4887@699dd97b>, clojure.lang.Symbol #<core$fn__4839 clojure.core$fn__4839@3b961a84>, clojure.lang.IPersistentCollection #<core$fn__4857 clojure.core$fn__4857@c7f5bf9>, java.util.Collection #<core$fn__4853 clojure.core$fn__4853@1286d597>, clojure.lang.ISeq #<core$fn__4847 clojure.core$fn__4847@7bfd25ce>, java.util.regex.Pattern #<core$fn__4916 clojure.core$fn__4916@1e646bfb>, clojure.lang.Namespace #<core$fn__4918 clojure.core$fn__4918@54d1f0ad>, clojure.lang.IPersistentList #<core$fn__4849 clojure.core$fn__4849@75f0f8ff>, clojure.lang.IPersistentMap #<core$fn__4878 clojure.core$fn__4878@44f1b25e>, clojure.lang.PersistentHashSet #<core$fn__4897 clojure.core$fn__4897@2d97d09f>, java.util.Map #<core$fn__4874 clojure.core$fn__4874@2c18b492>, clojure.lang.LazilyPersistentVector #<core$fn__4901 clojure.core$fn__4901@3403f5a0>, clojure.lang.Var #<core$fn__4843 clojure.core$fn__4843@37f808e6>, java.lang.Number #<core$fn__4824 clojure.core$fn__4824@3a252a17>, java.lang.Boolean #<core$fn__4834 clojure.core$fn__4834@4f65cbd2>, java.math.BigDecimal #<core$fn__4893 clojure.core$fn__4893@5b0010ec>, java.lang.String #<core$fn__4863 clojure.core$fn__4863@2025b64d>, java.lang.Character #<core$fn__4885 clojure.core$fn__4885@7669521>, clojure.lang.Ratio #<core$fn__4891 clojure.core$fn__4891@6feb139e>, clojure.lang.Keyword #<core$fn__4820 clojure.core$fn__4820@738bf6bf>, clojure.lang.PersistentHashMap #<core$fn__4895 clojure.core$fn__4895@3f8771dc>, clojure.lang.PersistentVector #<core$fn__4899 clojure.core$fn__4899@74914a0a>, java.lang.Double #<core$fn__4889 clojure.core$fn__4889@3b3e3940>, clojure.lang.Fn #<core$fn__4828 clojure.core$fn__4828@41d753b7>}
    
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:1637 top

(defn methods
  "Given a multimethod, returns a map of dispatch values -> dispatch fns"
  {:added "1.0"
   :static true}
  [^clojure.lang.MultiFn multifn] (.getMethodTable multifn))
Vars in clojure.core/methods:
Used in 0 other vars

Comments top

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