
extop - access to the operands of a domain element

Calling sequence:
extop(domelem)
extop(domelem, integer)
extop(domelem, integer1, integer2 [ , integer ... ])

Parameter:
domelem              --   domain element
integer1, integer2   --   positive integers
integer              --   positive integer

Summary:

A domain element consists of the domain  to which it belongs and a listof
values which represent its contents. The function extop allows access to the
domain and the operands of the list.

extop(domelem) returns an expression sequence of all the operands in the
list of the domain element domelem.

extop(domelem, integer1) returns the integer1-th entry of domelem.  If
integer1 is 0, the function returns the domain to which the domain element
belongs.

extop(domelem, integer1, integer2 [ , integer... ]) returns an expression
sequence of the operands in the domain element domelem, whose indicies have
been passed to the function. At the positions where the indicies have the value
0 the expression sequence has the domain of the domain element as the entry.

extop is a kernel function.

>>  d:=domain(): e:=new(d,1,2,3,4): extop(e);

      1, 2, 3, 4

>>  d:=domain(): e:=new(d,1,2,3,4): extop(e,2);

      2

>>  d:=domain(): e:=new(d,1,2,3,4): extop(e,2,4);

      2, 4

>>  d:=domain(): e:=new(d,1,2,3,4): extop(e,0);

      domain()

See also:  extnops , extsubsop , new, op

