def flatten(array):
    result = []
    for value in array:
        result.extend(value)
    return result
Flattens the elements of the provided array, `data`.
dataset/ETHPy150Open fogleman/pg/pg/util.py/flatten