RosettaCodeData/Task/Flatten-a-list/Maple/flatten-a-list-1.maple

6 lines
85 B
Text
Raw Permalink Normal View History

2014-04-02 16:56:35 +00:00
L := [[1], 2, [[3,4], 5], [[[]]], [[[6]]], 7, 8, []]:
with(ListTools):
Flatten(L);