File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ Produces a new table containing all elements that pass truth test
4848* array.<code >reduce(object: table , callback: function [ , memo] ):* </code ><br />
4949Applies a function against an accumulator and each value of the table to reduce it to a single value
5050
51+ * array.<code >reduce_right(object: table , callback: function [ , memo] ):* </code ><br />
52+ Works like ` reduce ` except that it interates over table's elements from right to left
53+
54+ * array.<code >sum(object: table ): number </code ><br />
55+ Returns the sum of the values of the table passed by parameter
56+
5157* array.<code >concat(object: table , object: table ): table </code ><br />
5258Returns a new table by joining all values from the two tables
5359
@@ -81,3 +87,6 @@ Creates a new table with the sub-table elements concatenated into it
8187* array.<code >fill(value:* , [ start: number ] , end: number ): table </code ><br />
8288Creates a table filling all the elements from a start index (default
8389one) to an end index with a default value passed by parameter.
90+
91+ * array.<code >remove(object: table , callback: function ): table </code ><br />
92+ Removes all elements from table that ` callback ` returns thruthy for and returns a new table with the removed elements
You can’t perform that action at this time.
0 commit comments