W3cubDocs

/Haxe Python

Set<T>

package python

Available on python

Constructor

new(?iterable:NativeIterable<T>)

new(?array:Array<T>)

Variables

read onlylength:Int

Methods

add(elem:T):Void

clear():Void

copy():Set<T>

difference(other:Set<T>, others:Rest<Set<T>>):Set<T>

difference_update(other:Set<T>, others:Rest<Set<T>>):Set<T>

discard(elem:T):Void

inlinehas(v:T):Bool

intersection(other:Set<T>, others:Rest<Set<T>>):Set<T>

intersection_update(other:Set<T>, others:Rest<Set<T>>):Set<T>

isdisjoint(other:Set<T>):Bool

issubset(other:Set<T>):Bool

inlineissubset_proper(other:Set<T>):Bool

issuperset(other:Set<T>):Bool

inlineissuperset_proper(other:Set<T>):Bool

inlineiter():NativeIterator<T>

inlineiterator():Iterator<T>

pop():T

remove(elem:T):Void

symmetric_difference(other:Set<T>):Set<T>

symmetric_difference_update(other:Set<T>):Set<T>

union(other:Set<T>, others:Rest<Set<T>>):Set<T>

update(other:Set<T>, others:Rest<Set<T>>):Set<T>

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/python/Set.html