Standard Methodical MultiFn impl, which
Standard Methodical MultiFn impl, which
(composite-effective-dispatch-value dispatcher dispatch-values)
Combine multiple composite dispatch values into a single composite dispatch value that has the overall most-specific arg for each position, e.g.
;; String is more specific than Object; ::parrot is more specific than ::bird (composite-effective-dispatch-value [[Object ::parrot] [String ::bird]]) ; -> [String ::parrot]
If the most-specific dispatch value is not composite, it returns it directly.
Combine multiple composite dispatch values into a single composite dispatch value that has the overall most-specific arg for each position, e.g. ;; String is more specific than Object; ::parrot is more specific than ::bird (composite-effective-dispatch-value [[Object ::parrot] [String ::bird]]) ; -> [String ::parrot] If the most-specific dispatch value is not composite, it returns it directly.
(effective-dispatch-value dispatcher primary-methods aux-methods)
Given matching primary-methods
and aux-methods
for dispatch-value
, determine the effective dispatch value.
Given matching `primary-methods` and `aux-methods` for `dispatch-value`, determine the effective dispatch value.
(sort-dispatch-values dispatcher dispatch-values)
Sort dispatch values in order from most-specific-overall to least-specific-overall.
Sort dispatch values in order from most-specific-overall to least-specific-overall.
(standard-effective-method method-combination
dispatcher
method-table
dispatch-value)
Build an effective method using the 'standard' technique, taking the dispatch-value-method pairs in the
method-table
, finiding applicable ones using dispatcher
, and combining them using method-combination
.
Build an effective method using the 'standard' technique, taking the dispatch-value-method pairs in the `method-table`, finiding applicable ones using `dispatcher`, and combining them using `method-combination`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close