Scala

2 thoughts
last posted April 14, 2016, 11:50 a.m.

1 later thought

0

When checking whether everything in a target set is present in an actual set, using diff and then checking for the empty set is quicker than intersect.