Bengt Kleberg bengt.kleberg@REDACTED
Tue Nov 2 10:41:20 CET 2004

Vance Shipley wrote:
> Is this a bug or am I missing something?
> 1> lists:keymerge(1, [{1,foo}], [{1,a},{2,b},{3,c}]).
> [{1,foo},{1,a},{2,b},{3,c}]

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.''

> I would have expected it to return:
> [{1,foo},{2,b},{3,c}]

perhaps (???) this is what you get from

lists:ukeymerge(N, List1, List2)


More information about the erlang-questions mailing list