Join Slack
Communities
Powered by
sorry if I already brought this up (I don't recall...
# announcements
e
elect
03/27/2018, 7:46 AM
sorry if I already brought this up (I don't recall it now), but is there a way to add a generic constant on
Enums
to retrieve the max value? some sort of:
inline val <reified T: Enum<T>> T.MAX get()= enumValues<T>().size
Open in Slack
Previous
Next