Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rwerite the "Testing for Elements" section
It assumed that you have to convert something to a Set before being able to use a set operator on it. This is not true: set operators will take care of conversion when needed. In the shown example, it was actually detrimental to first convert to a Set, because the (elem) operator can short-circuit whenever it finds a match, so it won't have to examine all values in the conceptual Set. Also, in the example "so" was used: this is unnecessary, since (elem) returns a full-blown Bool. Also, refer to "first" if you would like to use different ways of comparison.
- Loading branch information