W3cubDocs

/Haxe Python

Dict<K, V>

package python

@:native("dict") Available on python

Constructor

new ()

Variables

read only length:Int

Methods

clear ():Void

copy ():Dict<K, V>

get (key:K, ?def:V ):V

inline getSafe (key:K ):V

inline hasKey (k:K ):Bool

items ():DictView<Tuple2<K, V>>

inline iter ():NativeIterator<K>

inline iterator ():Iterator<V>

keys ():DictView<K>

pop (key:K, ?def:V ):V

popitem ():Tuple2<K, V>

inline remove (key:K ):Void

inline set (key:K, val:V ):Void

setdefault (key:K, ?def:V ):V

update (d:Dict<K, V>):Void

values ():DictView<V>

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