documentation of Data.List.intersect(By)

Christian Maeder Christian.Maeder at dfki.de
Thu Feb 26 05:15:47 EST 2009


Hi,

for Data.List.intersect I'm missing the documentation that the element
order in the result list is taken from the first list.

The comment "If the first list contains duplicates, so will the result."
indicates that, but also the example could be improved to show this:

> [1,2,2,3,4] `intersect` [6,4,4,2] == [2,2,4]

Cheers Christian



More information about the Libraries mailing list