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.
(def y (set x))
		
		
	bool[typeof(x[0])] y;
foreach (e ; x)
    y[e] = true;
		
		
	var y = x.toSet();
		
		
	y = x |> Enum.uniq |> List.to_tuple
		
		
	y = MapSet.new(x)
		
		
	Y = sets:from_list(X).
		
		
	func sliceToSet[T comparable](x []T) map[T]struct{} {
	y := make(map[T]struct{}, len(x))
	for _, v := range x {
		y[v] = struct{}{}
	}
	return y
}
		
		
	y := make(map[T]struct{}, len(x))
for _, v := range x {
	y[v] = struct{}{}
}
		
		
	var y = new Set(x);
		
		
	(setf y (remove-duplicates x))
		
		
	local hash = {}
local y = {}
for _,v in ipairs(x) do
   if (not hash[v]) then
       y[#y+1] = v
       hash[v] = true
   end
end
		
		
	$y = array_unique($x);
		
		
	for i := Low(X) to High(X) do Include(Y,X[i]);
		
		
	my %y = map {$_=>0} @x;
		
		
	y = set(x)
		
		
	y = {*x}
		
		
	val y = x.toSet
		
		
	y := x asSet