ecl-logo Documentation

Link

Link[object]link

returns a one-way link to the object.

Link[object,field]link

returns a two-way link to the field in object.

Link[object,field,index]link

returns a two-way link to the field at index in object.

Link[objects]links

returns a list of one-way links to the the given objects.

Link[objects,field]links

returns a list of two-way links to the field in each of the objects.

Link[objects,field,index]links

returns a list of two-way links to the index of field in each of the objects.

Details

  • Returns Null if object/link are given as Null.
  • Returns $Failed if given a packet that does not have an Object key
  • Input
    Output

Examples

Basic Examples  (5)

Represents a link to a field in an object at the specific index:

Represents a temporal link to a field in an object at the specific index:

Represents a link to a field in another object:

Represents a link to an object without a backlink field:

Create a list of links from a list of objects:

Additional Examples  (8)

Given a Link as the first argument returns a new Link to the Link's object:

If Link is wrapped around a Temporal Link, a new link is created that drops the date:

The original date is dropped if a new Temporal Link is defined over an existing Link:

If Link is wrapped around a non-object twice, this still reduces to a single Link:

Retuns Null if given Null as first argument:

Create a link to the object given a packet:

Given a Temporal Link as the first argument returns a new Link to the Link's object:

If Link is wrapped around a non-object twice, you can still define a Temporal Link: