Westerbly Snaydley
cf8e0ac81a
add ripairs (reverse ipairs)
2021-11-09 23:45:01 -05:00
Max Cahill
bbc34ddb5b
added measure.lua benchmarking helpers - todo ones that aid inline profiling, probably just wrapping some code and measuring time/memory deltas each run
2021-10-22 12:40:23 +11:00
Max Cahill
1a40c1ef27
added aabb as an acronym for camelCase
2021-07-23 14:26:26 +10:00
Max Cahill
1a8769fc22
removed debug print from :camelCase()
2021-07-22 09:06:12 +10:00
Max Cahill
9f65e1150b
modified :camelCase to capitalise class names and fully capitalise known acronyms. __name changed to __type, used for :type() calls
...
fixes #29
2021-07-21 19:50:12 +10:00
Max Cahill
444df42569
added :camelCase() and a note about it being experimental
2021-07-20 17:11:01 +10:00
Max Cahill
3cc177a0c0
BREAKING class interface refactor - all classes will need a minor update, see class.lua
...
tl;dr is that new no longer needs to call init, calling :new() directly in user code is not allowed, properties are copied, metamethods work, and a config table is needed rather than a class to extend from, so use {extends = superclass} if you want a minimal fix
2021-07-15 16:15:27 +10:00
Max Cahill
e726f19a5e
added pretty module with pretty.print and pretty.string
...
breaking: string.pretty still exists but takes new config argument
2021-07-05 16:12:16 +10:00
Max Cahill
89ad4c2dda
[added] pubsub
and timer
modules
2021-03-12 21:23:54 +11:00
Max Cahill
1eaf77ad7a
[fixed] assert was not exported upon :export()
2020-11-10 20:48:40 +11:00
Max Cahill
616b31b35f
[fixed] missing exports for some aliases, simplified export
2020-08-09 19:49:24 +10:00
Max Cahill
00ac480ed9
[modified] renamed stable_sort.lua
to sort.lua
; swapped alias order
2020-06-02 15:00:46 +10:00
Max Cahill
284856d2c3
[modified] refactored init.lua extensively; used new assert module in stringx and tablex
2020-05-19 12:03:45 +10:00
Max Cahill
e5be0df492
[added] set module with full (-ish?) suite of set operations and efficient (non-linear) membership testing
...
closes #4
2020-05-02 19:59:02 +10:00
Max Cahill
26acf1752d
[added] stringx module (just split for now) and overlay to string on export
2020-04-17 10:35:00 +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
3d3ccd921c
[fixed] color alias added to exported module as well as exported globals
2020-03-15 21:38:19 +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
9d556574f1
[added] table.reverse, vec3 to init.lua
2020-02-05 21:16:58 +11:00
Max Cahill
2253533246
[added] manual gc
2020-02-01 19:30:36 +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
2f470cf7c7
initial commit
2020-01-29 14:26:28 +11:00