previous

inline fun <E : Enum<E>> E.previous(stepSize: Int = 1): E

Returns the enum entry stepSize before this enum entry, in declaration order. Cycles back to the last entry if the beginning is reached.