update method
Updates element
on the Set.
Elements are matched by their uuid identity, not equality.
Returns true
if element
was updated. If the element
isn't in the
set, returns false
and the set is not changed.
Implementation
bool update(E element) => remove(element) ? add(element) : false;