Great
Il giorno 01 lug 2016, alle ore 18:17, Christian GrĂ¼n christian.gruen@gmail.com ha scritto:
() != (1) evaluates to false?
!= is an "existential comparison": every item on the left is compared with every item on the right. True is returned if there is at least one successful hit. As both the left and right sequence is empty, there will be nothing to compare, and the result is false.
Here are some other examples that demonstrate the behavior:
1 = () 1 != () (1,2) = (2,3) <a><b>X</b><b>Y</b></a>/b = 'X'
substring("aas", 1, 2) instance of function(*) evaluates to false?
Because substring("aas", 1, 2) returns a string. This one will give you true:
(: function with 3 arguments) substring#3 instance of function(*)