@@ -83,4 +83,14 @@ function Aux.util.all(xs, p)
holds = holds and p(x)
end
return holds
function Aux.util.set_filter(set, p)
filtered = {}
for x, _ in pairs(set) do
if p(x) then
Aux.util.set_add(filtered, x)
return filtered
The note is not visible to the blocked user.