W3cubDocs

/Haxe Lua

Table<A, B>

package lua

Available on lua

This library provides generic functions for table manipulation.

Static methods

staticconcat<A, B>(table:Table<A, B>, ?sep:String, ?i:Int, ?j:Int):String

staticconcat<A, B>(table:Table<A, B>):Void

staticcreate<A, B>(?arr:Array<B>, ?hsh:Dynamic):Table<A, B>

staticinlinefromArray<T>(arr:Array<T>):Table<Int, T>

staticinlinefromDynamic<A, B>(dyn:Dynamic):Table<A, B>

staticinlinefromMap<A, B>(map:Map<A, B>):Table<A, B>

staticinsert<B>(table:Table<Int, B>, pos:Int, value:B):Void

staticinsert<B>(table:Table<Int, B>, value:B):Void

staticremove<B>(table:Table<Int, B>, ?pos:Int):Void

staticremove<B>(table:Table<Int, B>):Void

staticsort<A, B>(table:Table<A, B>, ?order:(A, A) ‑> Bool):Void

staticinlinetoArray<T>(tbl:Table<Int, T>, ?length:Int):Array<T>

staticinlinetoMap<A, B>(tbl:Table<A, B>):Map<A, B>

staticinlinetoObject<T>(t:Table<String, T>):Dynamic<T>

Copies the table argument and converts it to an Object.

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