reverse
Parameters
- dir:SortDirection
- SortDirection
Source
Implementation
pub fn reverse(dir: SortDirection) SortDirection {
return switch (dir) {
.descending => .ascending,
else => .descending,
};
}Source
pub fn reverse(dir: SortDirection) SortDirection {
return switch (dir) {
.descending => .ascending,
else => .descending,
};
}