Difference between sequences

Read(2390) Label: sequences, subtract, new sequence,

Description:

Generate a new sequence by subtracting members of another sequence from a sequence.

Syntax:

A\B

A\x

Note:

The operation generates a new sequence by subtracting the members (or single values) of B from sequence A in order.

Parameter:

A

A sequence whose length is n

B

A sequence whose length is m or a single value which can be regarded as [B]

Return value:

A new sequence by subtracting the members (or single values) of B from sequence A in order.

Example:

 

A

 

1

=[1,2,3,4]\[2,3]

[1,4]

2

=[1,2,3,3]\[1,3]

[2,3], the duplicate members will not be subtracted repeatedly.

3

=[1,2,3]\3

[1,2]

Related function:

Concatenation of sequences

Intersection of sequences

Union of Sequences

Multiplication of sequences

Alignment arithmetic operations

cmp()