Array.lua v1.3.3
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 throughcallback
-