Sets<E> extension

Provides functions for working with Sets.

on

Methods

replaceAll(void function(bool replace(E element), E element)) → void
Replaces elements using function.
toggle(E element) → void
Adds the element to the set if it is not in the set, removes the element if it is in the set.