def permute_by_indices(list_of_things, *list_of_index_transpositions):
    """Given a list_of_things and a list of pairs of transpositions of indices
    [(i, j), (k, m), ...], return the list_of_things with the i-th an j-th
    values swapped, the k-th- and m-th values swapped, and so on.

    Examples
    --------
    >>> permute_by_indices(['a', 'b', 'c'], [(0, 1)])
    ['b', 'a', 'c']

    >>> permute_by_indices(['a', 'b', 'c'], [(0, 2), (1, 2)])
    ['c', 'a', 'b']
    """
    result = list_of_things
    for i, j in list_of_index_transpositions:
        result[j], result[i] = result[i], result[j]
    return result