Package org.luaj.vm2

Examples of org.luaj.vm2.LuaTable.sort()


        return NONE;
      }
      case 3: { // "sort" (table [, comp]) -> void
        LuaTable table = args.checktable(1);
        LuaValue compare = (args.isnoneornil(2)? NIL: args.checkfunction(2));
        table.sort( compare );
        return NONE;
      }
      case 4: { // (table, func) -> void
        return args.checktable(1).foreach( args.checkfunction(2) );
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.