avoid using reserved words as variable names
The sample code creates the variable 'intersection' as a token representing the result of an intersection operation. Inasmuch as the same term is the name of a method defined by the language, it's bad form to use the reserved term as a variable name. I suggest you change it to e.g. 'my_intersection'.
1
vote
Todd Morley
shared this idea