You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idea: play around with subsumes strategy instead of public-class #964
(defnsort-by-subsumption [classes]
(sort
(fn [^Class a ^Class b]
(cond
(.isAssignableFrom a b) 1; a is more general than b → b comes first
(.isAssignableFrom b a) -1; b is more general than a → a comes first:else0)) ; unrelated → keep original order
classes))
(prn
(sort-by-subsumption
#{java.lang.Object java.text.BreakIterator java.lang.Cloneable}))
Activity