CoCoA:Fields

From ApCoCoAWiki

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>