TableTools.hx 462 B

123456789101112131415
  1. package lua;
  2. /**
  3. This library provides generic functions for table manipulation.
  4. **/
  5. @:native("_hx_table")
  6. extern class TableTools {
  7. public static function pack<T>(args:haxe.extern.Rest<T>) : Table<Int,T>;
  8. public static function unpack<Int,V>(args:lua.Table<Int,V>, ?min : Int, ?max : Int) : Dynamic;
  9. public static function maxn(t:Table.AnyTable) : Int;
  10. public static function __init__() : Void {
  11. untyped __define_feature__("use._hx_table", null);
  12. }
  13. }