name = 'intersect/3' slug = 'find the intersection of two sets' description = '''\
intersect(S1, S2, I)
: the list I
contains every element that appears in both S1
and S2
, with no duplicates.
?- intersect([1,5,6,3,4,2], [8,1,5,9,4,3], I). I = [1,5,3,4].''' hint = {}