W3cubDocs

/Haxe

PairTools

package lua

Available on lua

A set of utility methods for working with the Lua table extern.

Static methods

static copy<A, B> (table1:Table<A, B>):Table<A, B>

static ipairsConcat<T> (table1:Table<Int, T>, table2:Table<Int, T>):Table<Int, T>

static ipairsEach<T> (table:Table<Dynamic, T>, func:Int ‑> T ‑> Void):Void

static ipairsExist<T> (table:Table<Int, T>, func:Int ‑> T ‑> Bool):Void

static ipairsFold<A, B> (table:Table<Int, A>, func:Int ‑> A ‑> B ‑> B, seed:B ):B

static ipairsMap<A, B> (table:Table<Dynamic, A>, func:Int ‑> A ‑> B ):Table<Int, B>

static pairsEach<A, B> (table:Table<A, B>, func:A ‑> B ‑> Void):Void

static pairsExist<A, B> (table:Table<A, B>, func:A ‑> B ‑> Bool):Void

static pairsFold<A, B, C> (table:Table<A, B>, func:A ‑> B ‑> C ‑> C, seed:C ):C

static pairsMap<A, B, C> (table:Table<A, B>, func:A ‑> B ‑> C ‑> C ):Table<A, C>

static pairsMerge<A, B> (table1:Table<A, B>, table2:Table<A, B>):Table<A, B>

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/lua/PairTools.html