lists:keymerge/3

Vance Shipley vances@REDACTED
Tue Nov 2 15:14:05 CET 2004


On Tue, Nov 02, 2004 at 10:41:20AM +0100, Bengt Kleberg wrote:
}  
}  this seems to be according to the documentation:
}  ''When elements in the input lists compare equal, elements from List1 
}  are picked before elements from List2.''
  
The only logical interpretation of that statement is that elements
with the same key are picked from List1.  If you interpret it that 
the whole tuple must be equal for this statement to apply then it 
would be impossible to prove which list was chosen.

}  perhaps (???) this is what you get from
}  
}  lists:ukeymerge(N, List1, List2)

No, it does the same thing.

	-Vance




More information about the erlang-questions mailing list