eq()

Read(2344) Label: change position, boolean value,

Here’s how to use eq() function.

A.eq(B)

Description:

Judge if a given sequence can be generated by adjusting the positions of the members of another sequence.

Syntax:

A.eq(B)

Note:

Judge if sequence A can be generated by changing positions of the members of sequence B.

Parameter:

A

A sequence expression

B

A sequence expression

Return value:

Boolean value

Example:

 

A

 

1

= [1,2,5]

 

2

=[5,2,1]

 

3

=A1.eq(A2)

true

4

=["a","b","c"]

 

5

=["b","a","c"]

 

6

=A4.eq(A5)

true

7

=[5,2,2]

 

8

=A7.eq(A1)

false