flatten

Synopsis

@ flatten(@array)

Returns a shallow copy of the specified array flattened to 1-dimension.

Parameters

@array - the array to flatten.

Returns

A shallow copy of the specified array flattened to 1-dimension.

Examples

@array = @("a", "b", "c", @("dd", "ee", "ff", @("ggg", "hhh"), "ii"), "j", "k"); @copy = flatten(@array); println(@copy);

@('a', 'b', 'c', 'dd', 'ee', 'ff', 'ggg', 'hhh', 'ii', 'j', 'k')

See Also