next

fun <E : Enum<E>> Enum<E>.next(entries: List<E>): E