eval_list

Gamma: Version 4.0
Prev |  | Next

# `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

| 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`

Prev | Home | Next
`eval` | Up | `eval_string`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.