Populates and returns the destination mutable map with key-value pairs,
where key is provided by the keySelector function applied to each element of the given collection
and value is the element itself.
Groups elements of the original collection by the key returned by the given keySelector function
applied to each element and returns a map where each group key is associated with a list of corresponding elements.
Groups elements of the original collection by the key returned by the given keySelector function
applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
Returns a list containing the results of applying the given transform function
to each element and its index in the original collection.
@param transform function that takes the index of an element and the element itself
and returns the result of the transform applied to the element.
Applies the given transform function to each element and its index in the original collection
and appends the results to the given destination.
@param transform function that takes the index of an element and the element itself
and returns the result of the transform applied to the element.
Returns a list of values built from the elements of this collection and the other collection with the same index
using the provided transform function applied to each pair of elements.
The returned list has length of the shortest collection.