(box c)
If the argument is a primitive Class, returns its boxed equivalent, otherwise returns the argument
If the argument is a primitive Class, returns its boxed equivalent, otherwise returns the argument
(convertible? c1 c2)
Returns true if it's possible to convert from c1 to c2
Returns true if it's possible to convert from c1 to c2
Takes a Symbol, String or Class and tires to resolve to a matching Class
Takes a Symbol, String or Class and tires to resolve to a matching Class
(numeric? c)
Returns true if the given class is numeric
Returns true if the given class is numeric
(prim-or-obj tag)
If the given Class is a primitive, returns that Class, otherwise returns Object
If the given Class is a primitive, returns that Class, otherwise returns Object
Returns non-nil if the argument represents a primitive Class other than Void
Returns non-nil if the argument represents a primitive Class other than Void
(subsumes? c1 c2)
Returns true if c2 is subsumed by c1
Returns true if c2 is subsumed by c1
(try-best-match tags methods)
Given a vector of arg tags and a collection of methods, tries to return the subset of methods that match best the given tags
Given a vector of arg tags and a collection of methods, tries to return the subset of methods that match best the given tags
(unbox c)
If the argument is a Class with a primitive equivalent, returns that, otherwise returns the argument
If the argument is a Class with a primitive equivalent, returns that, otherwise returns the argument
(wider-primitive from to)
Given two numeric primitive Classes, returns the wider one
Given two numeric primitive Classes, returns the wider one
(wider-tag tags)
Given a collection of Classes returns the wider one
Given a collection of Classes returns the wider one
(wider-tag* from to)
Given two Classes returns the wider one
Given two Classes returns the wider one
If the argument is a numeric primitive Class, returns a set of primitive Classes that are narrower than the given one
If the argument is a numeric primitive Class, returns a set of primitive Classes that are narrower than the given one
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close