1 bookmark for 2024-12-01

45.

Kotlin trick: writing shared Enum utility code

whtwnd.com/p-y.wtf/entries/Kotlin trick: writing shared Enum utility code

Some tips from P-Y to write handy utilities for enums like ensuring entries are sorted or that they have unique labels, in a generic fashion.