ordered sets operations on lists..
Amit Khemka
khemkaamit at gmail.com
Fri Feb 10 11:58:05 EST 2006
Hello, Is there a *direct* way of doing set operations on lists which
preserve the order of the input lists ?
For Ex. l1 = [1, 5, 3, 2, 4, 7]
l2 = [3, 5, 10]
and (l1 intersect l2) returns [5, 3] .... (and (l2 intersect l1)
returns [3, 5])
thanks in advance,
amit.
--
----
Amit Khemka -- onyomo.com
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.
More information about the Python-list
mailing list