def flatten(array):
    """Flattens the elements of the provided array, `data`.

        >>> a = [(0, 0), (1, 0), (2, 0), (3, 0)]
        >>> flatten(a)
        [0, 0, 1, 0, 2, 0, 3, 0]

    The flattening process is not recursive, it is only one level deep.
    """
    result = []
    for value in array:
        result.extend(value)
    return result
