A.( x,… )

Read(733) Label: sequence, member, expression,

Description:

Compute an expression with each member of a sequence.

Syntax:

A.(x,…)

   

A.()

return A itself

Note:

The function generates a new sequence composed of the results of computing expression x with each member in sequence or table sequence A. Use "~" in x to reference the current member in A.

Parameter:

A

A sequence/a record sequence

x

An expression, which is generally a field name or a legal expression composed of field names and in which "~" is used to reference the current record.

Option:

@m

Enable parallel processing where the order of task computations is not fixed

Return value:

A sequence

Example:

 

A

 

1

=[1,2,3].(~*~)

Return [1,4,9]; the tilde ~ means referencing the current member

2

=demo.query("select EID,NAME,BIRTHDAY from EMPLOYEE where EID<10")

Return a table sequence

3

=A2.(EID)

Return EID column of A2’s sequence

4

=A2.(age(BIRTHDAY))

Calculate ages according to BIRTHDAY

5

=A2.()

Return A2’s sequence