Transform an object array to a map/dictionary.
The array to be transformed
The key maker function or the property name of the object.
A dictionary where each key is generated from the input array items.
Transform an object array to a map/dictionary.