# 例題. 2次元配列を flatten(reduce を使う)

# C#

items.Aggregate((a, e) => Enumerable.Concat(a, e).ToList() );

# Python

reduce(lambda a, e: a + e, items)
items = [[1, 2], [3, 4, 5], [6, 7]]
items_f = reduce(lambda a, e: a + e, items)

[ 📩 ご意見 ]