One complication is that unlike other `*MapOf` met...
# stdlib
e
One complication is that unlike other
*MapOf
methods,
enumMapOf
would have to have access to the enum’s class object. So either we can use the signature
enumMapOf(pairs)
and disallow creating a empty enum map (because we won’t be able to get hold of the class object), or we could require the user to pass the class object as a parameter.