Project the receiver onto an {@link EnumMap}, applying the function to each enum value of the array.
A fully populated EnumMap.
The key type, an Enum.
The value type produced by the function.
The function to map keys to values.