eval_list

eval_list — evaluates each element of a list.

Syntax

eval_list (list)

		

Arguments

list

A list.

Returns

A new list whose elements are the results of evaluating each of the elements of the argument list in turn.

Description

Evaluates each element of the list. Returns the results as a new list whose elements correspond on a one-to-one basis with the elements of the list.

Example

[Note]

The # operator is used to protect an expression from evaluation. See Quote Operators for more information.

Gamma> a = 5;
5
Gamma> b = 3;
3
Gamma> c = list (#a, #b, "Their sum", #(a+b));
(a b "Their sum" (+ a b))
Gamma> eval_list(c);
(5 3 "Their sum" 8)
Gamma> 
		

See Also

eval