from typing import Tuple


def get_channel_values(digitalOut, func) -> Tuple:
    """Get the result of applying 'func' to all DigitalOut channels."""
    return tuple(func(channel_index) for channel_index in range(digitalOut.count()))