A .conj()

Read(183) Label: sequence, concatenate, new sequence,

Description:

Get concatenation of all sequence-type members in a sequence.

Syntax:

A.conj(x)

Note:

The function generates a new sequence by concatenating all the sequence-type members in sequence A; compute expression x by loop and then concatenate the results when parameter x is present.

Options:

@r

Recursively concatenate members until there isn’t any sequence members

Parameters:

A

A sequence whose members are sequences

x

An expression that returns a sequence as the result

Return value:

The new sequence by concatenating all the members in sequence A

Example:

 

A

 

1

=[[1,2,3],[4,5,6]].conj()

[1,2,3,4,5,6]

2

=[[1,[2,3]],[2,5,6]].conj()

[1,[2,3],2,5,6]

3

=[[1,2,3],[3],[7]].conj()

[1,2,3,3,7]

4

=[[1,[2,3]],[2,5,6]].conj@r()

[1,2,3,2,5,6]

5

=demo.query("select * from EMPLOYEE where GENDER = 'M' order by NAME")

 

6

=demo.query("select * from EMPLOYEE where GENDER = 'F' order by NAME")

 

7

=[A5,A6].conj(~.(NAME))

[Rebecca,Ashley,…] Form a sequence by concatenating NAME field of A1 and A2

Related functions:

A.union()

A.diff()

A.isect()

A.xunion()