flatData

create flat copy of vals

flatData
(
T
E...
)
(
in E vals
)
if (
E.length > 0
)

Examples

assertEq( flatData!float([1.0,2],[[3,4]],5,[6,7]), [1,2,3,4,5,6,7] );

assertEq( flatData!double( VecN!3([1,2,3]) ), [1,2,3] );
assertEq( flatData!double( VecN!1([2]) ), [2] );

Meta