2,875
edits
Tag: Undo |
Tag: Undo |
||
Line 9: | Line 9: | ||
local self = setmetatable({}, funlist) | local self = setmetatable({}, funlist) | ||
self.mytable = tbl | self.mytable = tbl | ||
return self | return self | ||
end | end | ||
Line 221: | Line 220: | ||
table.sort(self.mytable, sortFunc) | table.sort(self.mytable, sortFunc) | ||
return self | return self | ||
end | end | ||
Line 240: | Line 229: | ||
local val = selector(v) | local val = selector(v) | ||
assert(val) | assert(val) | ||
table.insert(result, | table.insert(result, selector(v)) | ||
end | end | ||
self.mytable = result | self.mytable = result |
edits