ElEditors, Administrators
70,740
edits
(Created page with "-- Implement sorted loop through array. function spairs(t) local keys = {} for k in pairs(t) do keys[#keys+1] = k end table.sort(keys) local i = 0 return f...") |
No edit summary |
||
Line 1: | Line 1: | ||
-- String starts | |||
function string.starts(String, Start) | |||
return string.sub(String, 1, string.len(Start)) == Start | |||
end | |||
-- Implement sorted loop through array. | -- Implement sorted loop through array. | ||
function spairs(t) | function spairs(t) |