I came across a blog post with the following function call:
intersection_cardinality = len(set.intersection(*[x, y]))
Is there any benefit in passing parameters as an unpacked array created just for that, instead of simply calling set.intersection(x, y)?
The blog post was written in python2, but the question goes for 3 as well.
set.intersection(*[x, y])is an overcomplicated way of writing the simple expressionx & y