question about sublist



Am 17 Apr 2007 um 11:40 hat Stavros Macrakis geschrieben:

> This will always given an error, since "map" requires all its list arguments to be the same length.
> Perhaps we should have a Lisp-like version of map which stops when the first list runs out. 

the flag maperror (default: true) allows this

(%i2) maperror:false$
(%i3) map("+",[1,2,3],[4,5]);
`map' is truncating.
(%o3) 				    [5, 7]

Volker