OrderedQ
OrderedQ({a, b,...})is
Trueifasorts beforebaccording to canonical ordering for all adjacent elements.
OrderedQ({a, b,...}, comparator)is
Trueifasorts beforebaccording to thecomparatorfunctions value for all adjacent elements. If thecomparatorfunction returnsFalseor-1theOrderedQfunction returnsFalse. If thecomparatorfunction doesn’t returnFalseor-1for all adjacent elements theOrderedQfunction returnsTrue.
See
Examples
>> OrderedQ({a, b})True
>> OrderedQ({b, a})FalseImplementation status
- ✅ - full supported