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.
print(x);
print x
console.log(x);
System.out.println(x);
This produces a meaningful output only if the type T of elements properly overrides toString().
echo $x;
for el in x do writeln(el);
print "$_\n" for @x;
Technically not a 'set' since an array can have repeat values. Either you need to enforce uniqueness yourself or use a module like Set::Light.
print(x)