Commit Graph

15 Commits

Author SHA1 Message Date
Max Cahill
8a62f3b19f [added] functional.generate and generate_2d 2020-05-13 21:09:15 +10:00
Max Cahill
eb428faa6e [fixed] issue in functional.zip 2020-05-13 21:08:23 +10:00
Max Cahill
e6a59460bd [modified] functional.remove renamed to functional.remove_if, moved functional.group_by, more documentation added 2020-05-12 09:42:06 +10:00
Jack Robinson
2d24d8e913 [added] add remove which holds onto all elements where f(v) returns false 2020-05-11 21:31:43 +12:00
Jack Robinson
d882127bda [added] add group-by function to group elements by the return of a provided function 2020-05-11 21:31:43 +12:00
Max Cahill
a87380f43c [modified] moved dedupe from functional to tablex 2020-04-08 21:18:52 +10:00
Max Cahill
8d5da0a9ff [modified] moved append and append_inplace from functional to tablex 2020-04-08 20:50:51 +10:00
Max Cahill
6386aaf298 [modified] big refactor to localised modules and require("batteries"):export() for global usage; renamed files table to tablex and math to mathx to allow using the library in your module root if you really want to. 2020-04-07 13:49:10 +10:00
Max Cahill
4bbbdf86d6
[modified] functional.lua find_best changed to ipairs and added find_min and find_max better named alternatives 2020-04-04 18:59:40 +10:00
Max Cahill
3674846f11 [added] functional.find_best accepts (ignores) nil results for easy filtering 2020-03-20 22:31:20 +11:00
Max Cahill
66a9f41474 [modified] renamed to batteries, added global export suppression and more documentation 2020-03-15 20:28:50 +11:00
Max Cahill
0dd92b2c2e [moved] table.copy from functional.lua to table.lua and updated signature a little to allow deep overlays 2020-03-12 21:15:18 +11:00
Max Cahill
6e7cabe9e0 [modified] split sequence and unique_mapping to their own files
[added] async to init
2020-01-31 11:56:37 +11:00
Max Cahill
6d4fe84ac1 [modified] sequences use metatable rather than copying from table 2020-01-30 14:58:18 +11:00
Max Cahill
2f470cf7c7 initial commit 2020-01-29 14:26:28 +11:00