Tags: Overglazed/array.lua
Tags
- array.flat(object:table):table This method returns a new table with all sub-array elements concatenated into it recursively up. - array.fill(value, [start], finish):table Creates a table filling all the elements from a start index (default one) to and end index with a default value passed by parameter.
Add the following methods: - array.some(object:table, callback:function):boolean Tests whether at least one element in the table passes the test implemented by the callback - array.every(object:table, callback:function):boolean Tests whether all elements in the table passes the test implemented by the callback - array.zip(object:table, object:table):table Returns a table of the two supplied by pairing up equally-positioned elements from both tables - array.shallowCopy(object:table):table Returns a shallow copy of the table passed as parameter - array.deepCopy(object:table):table Returns a deep copy of the table passed as parameter