Array.lua v1.2.6
What's new from Array.lua v1.2.5?
Added three more methods in the core of array.lua
:
-
array.
reduce_right(object:table):table
Works like reduce except that it iterates over table's elements from right to left -
array.
sum(object:table):number
Returns the sum of the values of the table passed by parameter -
array.
remove(object:table, callback:function):table
Removes all elements from table that callback returns truthy for and returns a new table with the removed elements