Function: math[split] - splits a list of lists

Calling Sequence:

split(LL);
split(LL, list);

Parameters:

LL - a list of lists

list - the name

Description:

In the first form, split breaks a list of list LL = [[ [Maple Math] , [Maple Math] , ..., [Maple Math] ], [ [Maple Math] , [Maple Math] , ..., [Maple Math] ], ...] into a sequence of n lists [ [Maple Math] , [Maple Math] , ...], [ [Maple Math] , [Maple Math] , ...], [ [Maple Math] , [Maple Math] , ...].

In the second form, split returns a list of lists: [[ [Maple Math] , [Maple Math] , ...], [ [Maple Math] , [Maple Math] , ...], [ [Maple Math] , [Maple Math] , ...]].

Note that the lists in LL must have the same number of elements.

This function is part of the math package, and so can be used only after performing the command with(math) or with(math, split).

Examples:

> with(math, split):

> LL := [[0, 0], [3, 4], [5, 6], [1, 2]];

[Maple Math]

> split(LL);

[Maple Math]

> interp(%, x);

[Maple Math]

> split(LL, list);

[Maple Math]

See Also:

zip , map .

Version History:

Version 1.0 - April 07, 1998

Version 1.0.1 - January 01, 1999