User Guide

ExamplesCalling Sequence Syntax
> selectremove(x -> evalb(x > round(x)),
[sin(0.), sin(1.), sin(3.)]);
selectremove(proc_cmd, expression);
For information on optional arguments to the selection commands, refer to
the ?select help page.
Mapping a Command over a Set or List
The map command applies a name, procedure, or command to each element
in a set or list. See Table 8.6.
Table 8.6: The map Command
ExamplesCalling Sequence Syntax
> map(f, {a, b, c});
> map(u -> int(cos(x), x = 0 .. u), [Pi/4,
Pi/7, Pi/3.0]);
map(name_proc_cmd, expression);
For information on mapping over the operands of other expressions, optional
arguments to the map command, and other mapping commands, refer to the
?map help page.
Mapping a Binary Command over Two Lists or
Vectors
The zip command applies a name or binary procedure or command compon-
ent-wise to two lists or vectors.
336 8 Basic Programming