def unfold_values(values):
    """Unfolds list of observation-frequency mappings.

    Args:
        values (tuple[number, int]): Observation-frequency mapping.

    Returns:
        List of values.

    Example:
        >>> from effectus.helpers import unfold_values
        >>> unfold_values([(1, 3), (2, 1), (3, 1)])
        [1, 1, 1, 2, 3]
    """
    result = []
    for observation, frequency in values:
        result += [observation] * frequency
    return result
