Shawn
12/08/2021, 4:43 PMFleshgrinder
12/08/2021, 4:45 PMlouiscad
12/08/2021, 11:00 PMthanksforallthefish
12/09/2021, 6:44 AMMatteo Mirk
12/09/2021, 8:33 AMFleshgrinder
12/09/2021, 8:53 AMMatteo Mirk
12/09/2021, 9:09 AMMatteo Mirk
12/09/2021, 9:10 AMRob Elliot
12/10/2021, 9:48 AMkotlin.Enum
provides an instance public final val ordinal: Int
that exposes its position in the enum, and implements Comparable
on the basis of that ordinal, allowing you to use it as a Range
. It couldn’t be harder baked into the public API of the class.Rob Elliot
12/10/2021, 9:49 AM