Branch: Tag:

2000-05-04

2000-05-04 03:13:02 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

new function Array.flatten

Rev: lib/modules/Array.pmod:1.42

546:    if (a0==b0) return 0;    return lyskom_sort_func(a0,b0);   } +  + array flatten(array a) + { +  array ret=({}); +  foreach(a, a) ret+=arrayp(a)?flatten(a):({a}); +  return ret; + }