from typing import List


def permute_list(x: List, permutation_indices: List[int]) -> List:
    """Permute `x` according to the indices in `permutation_indices`"""
    return [x[i] for i in permutation_indices]