rxi
3190d65130
Removed use of math.min and math.max in lume.slice()
2014-04-17 12:07:59 +01:00
rxi
c7471b32fb
Changed lume.uuid() to use local math_random()
2014-04-05 23:08:03 +01:00
rxi
bb56f1ce3a
Added missing comment for lume.uuid func in test_lua.lua
2014-04-05 16:37:05 +01:00
rxi
098754056a
Added tests for lume.chain()
2014-04-05 16:35:53 +01:00
rxi
330779fb0f
Added lume.chain(), added section to README.md
2014-04-05 16:30:10 +01:00
rxi
acdb58a447
Added lume.uuid(), tests and README.md section
2014-04-05 14:41:31 +01:00
rxi
88b428cb4d
Added lume.count() to README.md
2014-04-05 12:21:36 +01:00
rxi
fdf01937e2
Added lume.count() function and tests
2014-04-05 12:11:41 +01:00
rxi
3a4ce4fe3b
Added type check in lume.fn() and additional tests
2014-04-04 18:38:36 +01:00
rxi
1a087efe99
Added lume.match() to README.md
2014-04-04 18:21:21 +01:00
rxi
9a82d6318e
Added tests for lume.match()
2014-04-04 18:09:23 +01:00
rxi
30991649f8
Added lume.match()
2014-04-04 18:08:39 +01:00
rxi
dbd93b3861
Moved position of lume.combine() in readme and other files
2014-04-03 20:17:31 +01:00
rxi
8311519e3f
Added test for lume.combine() to test_lume.lua
2014-04-03 20:10:08 +01:00
rxi
82c697b08e
Added lume.combine() to README.md
2014-04-03 20:09:56 +01:00
rxi
5db6be936a
Added lume.combine() function
2014-04-03 20:09:40 +01:00
rxi
335b928cae
Removed function in lume.slice()
...
Moved the function index() from lume.slice()'s body to local var
absindex, this improves the performance of lume.slice() on luajit
significantly and improves it to a lesser extent on non-jit lua.
2014-04-01 20:16:39 +01:00
rxi
94977b4f7e
Updated test for lume.trace()
2014-03-30 18:38:45 +01:00
rxi
e6246834b7
Changed lume.trace() to round numbers to 2 decimal places
2014-03-30 18:31:14 +01:00
rxi
9bf2d24ee2
table.unpack() is now used if unpack() is not available.
2014-03-29 10:02:48 +00:00
rxi
89931c1ad8
Version 1.2.1
2014-03-27 17:57:19 +00:00
rxi
9ff4637201
Moved shared code of lume.split/trim() to local func
2014-03-19 21:05:34 +00:00
rxi
617729e261
Added more tests for lume.trim()
2014-03-19 20:18:32 +00:00
rxi
ad64d7af05
Fixed use of pattern special chars in lume.trim()
...
Using lua pattern special chars in the `chars` argument of lume.trim()
are now handled correctly and treated like any other character.
2014-03-19 20:14:48 +00:00
rxi
d69f419f5a
Improved lume.split()'s README.md section for clarity
2014-03-19 19:49:50 +00:00
rxi
ad34f6ce33
Updated lume.split() in README.md
2014-03-19 13:02:55 +00:00
rxi
5882ca1303
Fixed minor error in lume.set()'s README.md example
2014-03-19 12:54:14 +00:00
rxi
828d23e6f6
Added new tests and updated some others for lume.split()
2014-03-19 12:53:01 +00:00
rxi
13a8edb2e7
Changed lume.split() to mimic python's str.split()
...
The lume.split() function now mimics python's str.split() function,
though it does not support the third argument (maxsplit)
2014-03-19 12:51:35 +00:00
rxi
425a52b99f
Fixed spelling mistake in README.md
2014-03-18 18:01:12 +00:00
rxi
a234e36975
Version 1.2.0
2014-03-18 12:12:38 +00:00
rxi
4ba373c2d1
Localised global funcs/variables
...
Set most of the global funcs / variables which are used to local
variables. This offers better performance in lua 5.1 and 5.2, and seems
to make no difference in luaJIT.
2014-03-18 12:07:53 +00:00
rxi
c537d00a47
Added type tests for lume.random()
2014-03-18 12:04:36 +00:00
rxi
2c3be23a2b
Added test for lume.lambda() caching
2014-03-15 21:58:35 +00:00
rxi
be40cd6276
Added caching to lume.lambda()
2014-03-15 21:58:26 +00:00
rxi
c971cee753
Added more tests for lume.slice()
2014-03-13 21:53:07 +00:00
rxi
151b57adc6
Fixed behaviour for negative i argument on lume.slice()
...
A negative value for the `i` argument of lume.slice() is now handled
properly (used as an index from the end of the string) to mimicing the
behaviour of lua's string.sub()
2014-03-13 21:32:22 +00:00
rxi
cbafc49e8a
Added "unsupported type" error to lume.serialize()
...
The unsupported type error is raised if an unsupported type is
encountered in the table we are trying to serialize.
2014-03-12 21:16:32 +00:00
rxi
fcb1fa90d4
Reworded description of lume.weightedchoice() in README
2014-03-12 13:16:36 +00:00
rxi
2a6d1ea9a8
Added some tests for lume.weightedchoice()
2014-03-12 13:12:55 +00:00
rxi
2d7fa98155
Added lume.weightedchoice()
2014-03-12 13:12:45 +00:00
rxi
af4c919be4
Added tests for lume.lambda()
2014-03-09 00:11:06 +00:00
rxi
abdfd78354
Added tester.test.error() to tester.lua script
2014-03-08 23:00:47 +00:00
rxi
fbb5cbac1a
Replaced table concat with str concat in lume.lambda()
...
This offers an improvement in performance for the function on Lua5.1,
5.2 and JIT 2.0.2
2014-03-08 22:19:55 +00:00
rxi
f8cbfc0bb0
Added lume.lambda() to README.md
2014-03-08 21:18:05 +00:00
rxi
cf031025fd
Added lume.lambda()
2014-03-08 21:08:56 +00:00
rxi
4db5a6b683
Added another test for lume.reduce()
2014-03-08 16:19:31 +00:00
rxi
a4fe134985
Version 1.1.2
2014-03-08 16:10:16 +00:00
rxi
cbff46bdfb
Fixed empty-table test for lume.invert()
2014-03-08 16:08:58 +00:00
rxi
5e15a57f37
Moved lume.invert()'s test func to match order in lume.lua
2014-03-08 15:47:28 +00:00