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.
--- a/util/set.lua Tue Sep 03 00:20:28 2013 +0100
+++ b/util/set.lua Tue Sep 03 12:21:43 2013 +0100
@@ -75,7 +75,7 @@
end
function set:items()
- return items;
+ return next, items;
end
function set:remove(item)