Function: flatten - entries of a structure involving lists, sets, or arrays
expr - the expression
> M:= matrix([[1,2],[3,2]]);
> Q:= array(1..2,1..2,1..2,[[[1,2],[3,4]],[[5,6],[7,8]]]):
In the following example, T is implicitly constructed as a table by assigning values to its elements. Note that convert(T, list) might not return the entries in the order of the indices, but flatten(T) does.
> T:= first: T:= third: T:= second:
array , convert(list) , list , rtable , set , table
Maple Advisor Database R. Israel 1998