Module:IP: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Collection is good (I've always meant to fix it) but in case you don't have other plans, here is a change to make it work
(a subnet has getPrefix and so does not need its own copy of parts)
(Collection is good (I've always meant to fix it) but in case you don't have other plans, here is a change to make it work)
Line 19:
do
local mt = {
__index = {
add = function (self, item)
self.nadd = function (self.n +, 1item)
self[ self.n] = itemself.n + 1
self[self.n] = item
end,
join = function (self, sep)
returnjoin = function table.concat(self, sep)
return table.concat(self, sep)
end,
}
}
Collection = function ()
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu