CoCoA:NewList

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

NewList

create a new list

Description

The second function returns a list of length N, filled by E. The

first function, in which E is not indicated, returns a list of length

N filled with Null values.

Example

  NewList(4,<quotes>a</quotes>);
[<quotes>a</quotes>, <quotes>a</quotes>, <quotes>a</quotes>, <quotes>a</quotes>]
-------------------------------
  NewList(4);
[Null, Null, Null, Null]
-------------------------------

Syntax

NewList(N:INT):LIST
NewList(N:INT,E:OBJECT)

List

   <type>list</type>