![]() The sort function also takes one more argument with the table and that argument is a function which is known as the order function. table. One of the most used functions in Lua is the sort function which is provided by the Lua library which tables a table as an argument and sorts the values that are present inside the table. table.foreach - Applies a function to each item in a table. Static methods static concat( table: Table, ?sep: String, ?i: Int, ?j: Int): String static concat( table: Table): Void static create( ?arr: Array, ?hsh: Dynamic): Table static inline fromArray( arr: Array): Table static inline fromDynamic( dyn: Dynamic): Table static inline fromMap( map: Map): Table static insert( table: Table, pos: Int, value: B): Void static insert( table: Table, value: B): Void static remove( table: Table, ?pos: Int): Void static remove( table: Table): Void static sort( table: Table, ?order:( A, A) ‑> Bool): Void static inline toArray( tbl: Table, ?length: Int): Array static inline toMap( tbl: Table): Map static inline toObject( t: Table): DynamicĬopies the table argument and converts it to an Object. ncat - Concatenates table items together into a string. This library provides generic functions for table manipulation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |