```python
def flip_one(pair: list) -> list:
    """Flip the order of two elements in the given pair."""
    if len(pair) != 2:
        raise ValueError("Input must be a list with exactly two elements.")
    return [pair[1], pair[0]]

def flip_all(pairs: list) -> list:
    """Flip the order of elements in each pair in the given list."""
    return [flip_one(pair) for pair in pairs]
```