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.
x[e] = true
x has type map[E]bool
x[e] = struct{}{}
x has type map[E]struct{}
x.add(e);
x has type Set
x[e] = true
Lua tables work as arrays, maps and sets
Include(x,e);
x := x + [e];
$x = Set::Scalar->new;
$e = 'an element';
$x->insert($e);
Insert supports multiple elements in the argument list.
x.add(e)