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 = [[
,
, ...,
], [
,
, ...,
], ...] into a sequence of n lists [
,
, ...], [
,
, ...], [
,
, ...].
In the second form, split returns a list of lists: [[
,
, ...], [
,
, ...], [
,
, ...]].
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]];
> split(LL);
> interp(%, x);
> split(LL, list);
See Also:
zip , map .
Version History:
Version 1.0 - April 07, 1998
Version 1.0.1 - January 01, 1999