package python.lib; import python.NativeIterator; import python.NativeIterable; @:pythonImport("builtins", "set") extern class Set { @:overload(function (?array:Array):Void {}) public function new (?iterable:NativeIterable):Void; public inline function length ():Int { return python.lib.Builtin.len(this); } public inline function has (v:T):Bool { return python.Syntax.isIn(v, this); } public inline function minus (other:Set):Set { return python.Syntax.binop(this, "-", other); } public inline function plus (other:Set):Set { return python.Syntax.binop(this, "+", other); } function __iter__ ():NativeIterator; public inline function iterator ():NativeIterator { return __iter__(); } }