lume
lume copied to clipboard
Lua functions geared towards gamedev
Simple test: ```lua local t = lume.format("{1} is {2} is {3}", { true, false, true }) print(t) -- true is {2} is true ``` I guess this is of the...
`lume.random(1)` can sometimes return 1, but `lume.random()` and `lume.random(0,1)` will never return 1. (And the converse for zero: they should all be able to produce 0.) Change the single argument...
`{}` is considered not an array, as `({})[1] == nil`. `{1, a = 1, b = 2}` is considered an array as the first element is not `nil`. This will...
A passerby thought: list functions alphabetically in `README.md`, `lume.lua` and `test/test.lua`; and force the order for future development. Binary search is faster than the brute one. 🙂
if you have a table {"first"=2, "second"=1} and the random pulls out a 3, rnd values are: 3 then 3-2 = 1 and then 1
I'm currently in the process of swapping my home-brewed util library for lume. one sticking point is that my version of map passes the value and key to the mapper...
Hey! Thanks for creating this library, it's awesome! I have added some "functional" versions of the logical operations `and`, `or` and `not`. These can for example be used together with...
Will not install for Lua 5.4: ~~~ $ luarocks --local install lume Error: No results matching query were found for Lua 5.4. To check if it is available for other...
came here from lurker ;)
Hey there, Not sure if you’re still working on this repo at all or what, but I figured I would give it a shot. I’ve been using lume on a...