Returns all the methods in a generic function that are applicable to sample arguments, sorted in order of specificity.
Returns two sequences that, taken together, contain the methods in generic-function that are applicable to the sample-args. sorted-methods contains methods that are more specific than every method that follows them. unsorted-methods begins at the first point of ambiguity; it contains the methods that cannot be sorted.
The sequences returned should never be destructively modified. Doing so may cause unpredictable behavior.
If generic-function is sealed, an implementation may choose not to return two sequences of methods, but instead signal an error of type <sealed-object-error>.
| generic-function | An instance of <generic-function>. |
| #rest sample-args | Instances of <object>. |
| sorted-methods | An instance of <list>. Elements of the list are instances of <method>. |
| unsorted-methods | An instance of <list>. Elements of the list are instances of <method>. |