W3cubDocs

/Haxe Lua

Table<A, B>

package lua

@:native("_G.table") Available on lua

This library provides generic functions for table manipulation.

Static methods

static concat<A, B> (table:Table<A, B>, ?sep:String):String

static concat<A, B> (table:Table<A, B>):Void

@:has_untyped @:analyzer(no_fusion) static inline create<A, B> (?arr:Array<B>, ?hsh:Dynamic):Table<A, B>

static foreach<A, B> (table:Table<A, B>, f:A ‑> B ‑> Void):Void

static foreachi<A, B> (table:Table<A, B>, f:A ‑> B ‑> Int ‑> Void):Void

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

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

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

static remove<B> (table:Table<Int, B>):Void

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

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