Skip to content

Array.lua v1.3.3

Compare
Choose a tag to compare
@EvandroLG EvandroLG released this 14 Oct 19:23
· 22 commits to master since this release

What's new?

  • array.concat method was rewritten. Now it's accepting multiple tables as parameter.

  • Fixed bugs in array.slice method.

  • Added two new methods:

    • array.permutation(object:table):table
      Creates a new table returning all permutations of length of the elements of the given table

    • array.random(object:table):*
      Returns a value from a random key of the given array

    • array.group_by(object:table, callback:function):table
      Returns a new table composed by keys created from the results of running each element through callback