Up

list2Extract

Create two new lists from a list. Each element of the initial list is a tuple with an element of each new list.

Prototype :

fun [[[u0 u1] r1]] [[u0 r1] [u1 r1]]

Return : [[u0 r1] [u1 r1]] the two new lists or nil if error

See also :

list2Build

Example :

fun main ()=
	_showconsole;
	let [2 "a"] :: [5 "z"] :: [6 "e"] :: [7 "r"] :: [nil "t"] :: [nil "y"] :: nil -> l in
	let list2Extract l -> [l1 l2] in
	(
	_fooIdList l1;	// 2::5::6::7::nil::nil::nil
	_fooSList l2;	// "a"::"z"::"e"::"r"::"t"::"y"::nil
	);
	0;;

Note