「 list を含む sub-lists "、" list " は元のリストの間にあるすべてのレベルに結果の list に表示されるようにします。 基本的には、すべての中間 list ブレースは、同じレベル list から削除されます。
flatten ( list As List) As List
引数 | [タイプ] | 説明 |
---|---|---|
list | List | オリジナルの list をクリックします。 |
Intent >flatten({{a}, b, {{c}, d}})
--> {a, b, c, d}
Intent >flatten({{1, 3}, {2, {4}}, 7, {{}, {{5}, 6}}})
--> {1, 3, 2, 4, 7, 5, 6}
Intent >flatten({})
--> {}