CoCoA:Fields

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)

Fields

list the fields of a record

Description

This function returns a list of all of the fields of the record P.

Example

  P := Record[ Name = <quotes>David</quotes>, Number = 3728852, Data = [<quotes>X</quotes>,<quotes>Y</quotes>] ];
  Fields(P);
[<quotes>Data</quotes>, <quotes>Name</quotes>, <quotes>Number</quotes>]
-------------------------------
  P.Data;
[<quotes>X</quotes>, <quotes>Y</quotes>]
-------------------------------

Syntax

Fields(P:RECORD):LIST

Introduction to Records

Record

   <type>record</type>