make_array

Gamma: Version 4.0
Prev |  | Next

# `make_array`

`make_array` -- creates an empty array.

## Syntax

    make_array (n_elements)

## Arguments

`n_elements`

  A number of elements.

## Returns

An array with the given number of elements, all nil.

## Description

Creates an empty array for later use. This function has become obsolete as the `array` function can now create empty arrays. See `array`.

## Example

        Gamma> make_array(4);
        [nil nil nil nil]
        Gamma> make_array(7);
        [nil nil nil nil nil nil nil]
        Gamma>

See the Trend Functions section of the Photon Functions chapter (Tutorial One) in the Cogent Tools Demo and Tutorials book for an example of this function used in context.

## See Also

`array`

Prev | Home | Next
`list_to_array` | Up | `nappend`

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