Data structures · How fast is it?
One innocent-looking line, such as x in xs, can hide a whole loop, and inside another loop it turns linear work quadratic.
x in xs