ecl-logo Documentation

Field

Field[spec]Field[spec]

represents a field in an object or a sequence of links through multiple objects.

Details

  • References can be SubValues of fields, SubValues of Repeated fields, and Part expressions
  • Common Field expressions include:
  • Field[Container[Model][Name]]
    Name of the Model of the Container
    Field[Model[{Name, Synonyms}]]Name and Synonyms of the Model
    Field[(Container..)[Materials]]The Materials of the Container found after a series of Container references
    Field[LocationLog[[All, 4]]]The fourth element of each LocationLog
    Field[LocationLog[[1;;5]]]The first 4 LocationLogs
  • Input
    Output
    Attributes
  • HoldAll
  • Messages
  • DeprecatedThe Field syntax `1` is deprecated. Only Field with 1 argument is supported.

Examples

Basic Examples  (2)

Use Field to avoid evaluation of a complex field specification:

Represents the field Name in an object:

Attributes  (1)

HoldAll  (1)

Field does not evaluate its argument:

Messages  (1)

Deprecated  (1)

The multiple-argument format of Field is no longer guaranteed to work: