Convert a collection to an object whose keys are determined by a provided function and whose values are the collection values, iterating from right to left.