Skip to content

Array.lua v1.2.6

Compare
Choose a tag to compare
@EvandroLG EvandroLG released this 13 Sep 15:50
· 71 commits to master since this release

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