tuple comparison

Serge Aleynikov <>
Wed Jul 27 17:28:53 CEST 2005


I have a couple of questions that are not very obvious from documentation.

1. When we compare two tuples of equal sizes,

T1 = {I1, I2, ..., In},
T2 = {J1, J2, ..., Jn},

if T1 > T2 then

is there a guarantee that the following always holds true:

(I1 >= J1) and (I2 >= J2) and ... (In >= Jn)

2. What's the meaning of such a result:

53> {1, 2, 3} > 10.
true

I would think that this comparison should throw an exception.

Serge

-- 
Serge Aleynikov
R&D Telecom, IDT Corp.
Tel: (973) 438-3436
Fax: (973) 438-1464




More information about the erlang-questions mailing list