2,951
edits
(→Monadic form: Grade should always be stable: if not, it's not really Grade.) |
|||
Line 29: | Line 29: | ||
</source> | </source> | ||
Grade | Grade performs [[wikipedia:sorting algorithm#stability|stable sorting]], so that the indices of the repeated major cells are sorted by the order of appearance. Because of this, Grade Down produces the reverse of Grade Up only if all the major cells are unique. | ||
<source lang=apl> | <source lang=apl> |