Module:Array: Difference between revisionsGive feedback
Jump to navigation
Jump to search
osrsw>Talulah m sync changes with rsw |
osrsw>Talulah m take_from type check |
||
| Line 275: | Line 275: | ||
function p.take_from(enum, index, count) | function p.take_from(enum, index, count) | ||
libraryUtil.checkType('Module:Enum.take_from', 1, enum, 'table') | |||
libraryUtil.checkType('Module:Enum.take_from', 2, index, 'number') | |||
libraryUtil.checkType('Module:Enum.take_from', 3, count, 'number') | |||
local x, _ = p.split(p.reject(enum, | local x, _ = p.split(p.reject(enum, | ||
function(item, idx) | function(item, idx) | ||