>>> intersect (slist [1,2,3,4]) (slist [2,4,6,8]) Slist {sList = [2,4], sSize = Size 2}If the first list contains duplicates, so will the result.
>>> intersect (slist [1,2,2,3,4]) (slist [6,4,4,2]) Slist {sList = [2,2,4], sSize = Size 3}If the first slist is infinite, so will be the result. If the element is found in both the first and the second slist, the element from the first slist will be used. It is a special case of intersectBy.