util.set: :items() now returns an iterator instead of the underlying table. This is much more efficient than 'for item in set' (which still works for now). Current access to _items is generally done directly, this may change.

vault/0.11
Matthew Wild 13 years ago
parent c6bf0953e3
commit 01112d1d86
  1. 2
      util/set.lua

@ -75,7 +75,7 @@ function new(list)
end
function set:items()
return items;
return next, items;
end
function set:remove(item)

Loading…
Cancel
Save