Differences From
Artifact [04815ba40d]:
278 278 set.idvmap = o
279 279 set.null = quote var s: set s:clear() in s end
280 280 set.name = string.format('set<%s>', table.concat(tbl, '|'))
281 281 set.metamethods.__entrymissing = macro(function(val, obj)
282 282 if o[val] == nil then error('value ' .. val .. ' not in set') end
283 283 return `bit { _v=[o[val] - 1], _set = &(obj) }
284 284 end)
285 + terra set:any()
286 + for i = 0, bytes - 1 do
287 + if self._store[i] ~= 0 then return true end
288 + end
289 + return false
290 + end
285 291 terra set:sz()
286 292 var ct: intptr = 0
287 293 --for i = 0, [math.floor(#tbl/8)] do
288 294 -- ct = ct + lib.math.ll.ctpop_u8(self._store[i])
289 295 --end
290 296 --[(function()
291 297 -- if #tbl % 8 ~= 0 then