Changes collection calls to a related operation with fewer arguments:
Enum.sort/1→Enum.reverse/1Enum.sort/2→Enum.reverse/1, dropping the comparatorEnum.reverse/1→Enum.sort/1Enum.sort_by/2→Enum.reverse/1, dropping the key functionEnum.sort_by/3→Enum.reverse/1, dropping the key function and sorterEnum.count/2→Enum.count/1, dropping the predicateEnum.count_until/3→Enum.count_until/2, dropping the predicate but retaining the limitAccess.get_and_update/3→Access.get/2, dropping the update function
The Access replacement also changes the result from {value, updated_container} to the value alone. Enum.reverse/2 is not mutated because its second argument is a list tail rather than a sorting refinement.
Direct, aliased, imported, and piped calls are supported. This family is enabled by default.