def inverseEnumeration(l):
    """Returns the dictionary that provides for each element in the input list its index in the input list"""
    result = {}
    for i, x in enumerate(l):
        result[x] = i
    return result
