mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 11:02:20 +00:00
Version 1.1.2
This commit is contained in:
4
lume.lua
4
lume.lua
@@ -7,7 +7,7 @@
|
|||||||
-- under the terms of the MIT license. See LICENSE for details.
|
-- under the terms of the MIT license. See LICENSE for details.
|
||||||
--
|
--
|
||||||
|
|
||||||
local lume = { _version = "1.1.1" }
|
local lume = { _version = "1.1.2" }
|
||||||
|
|
||||||
|
|
||||||
function lume.clamp(x, min, max)
|
function lume.clamp(x, min, max)
|
||||||
@@ -76,7 +76,6 @@ function lume.shuffle(t)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function lume.array(...)
|
function lume.array(...)
|
||||||
local t = {}
|
local t = {}
|
||||||
for x in unpack({...}) do t[#t + 1] = x end
|
for x in unpack({...}) do t[#t + 1] = x end
|
||||||
@@ -153,7 +152,6 @@ function lume.merge(t, t2, retainkeys)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function lume.find(t, value)
|
function lume.find(t, value)
|
||||||
for k, v in pairs(t) do
|
for k, v in pairs(t) do
|
||||||
if v == value then return k end
|
if v == value then return k end
|
||||||
|
Reference in New Issue
Block a user