Logo

Programming-Idioms

Set b to true if the sets s and t have the same elements, false otherwise.
New implementation

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
import "maps"
b := maps.Equal(s, t)
import java.util.Set;
boolean b = s.equals(t);
b := s = t;
b = s == t
b = s == t