[ [ ... ] bi@ >=< ] sort => [ ... ] inv-sort-with
parent
a2fe9f1952
commit
97a515c04e
|
@ -21,7 +21,7 @@ ERROR: no-pair-method a b generic ;
|
|||
|
||||
: sorted-pair-methods ( word -- alist )
|
||||
"pair-generic-methods" word-prop >alist
|
||||
[ [ first method-sort-key ] bi@ >=< ] sort ;
|
||||
[ first method-sort-key ] inv-sort-with ;
|
||||
|
||||
: pair-generic-definition ( word -- def )
|
||||
[ sorted-pair-methods [ first2 pair-method-cond ] map ]
|
||||
|
|
Loading…
Reference in New Issue