def change_elements(items, old_index, new_index):
    """Switch places of two elements in list collection."""
    new_items = items[:]
    new_items[old_index], new_items[new_index] = new_items[new_index], new_items[old_index]
    return new_items