whats the best way to get an exhaustive map? (with...
# stdlib
c
whats the best way to get an exhaustive map? (with an enum as a key). I could use a when and copy its output to a map with a utility method that calls the when for every key. is there a better way?
m
You just mean something like
SomeEnum.values().associateWith { ... }
?
c
yes
181 Views