util.set: :items() now returns an iterator instead of the underlying table. This...
authorMatthew Wild <mwild1@gmail.com>
Tue, 3 Sep 2013 11:21:43 +0000 (12:21 +0100)
committerMatthew Wild <mwild1@gmail.com>
Tue, 3 Sep 2013 11:21:43 +0000 (12:21 +0100)
util/set.lua

index a2df669c05e97706b8d6120cddece71a8a5d73b7..89cd7cf369f0b891270f65c616958fd1f8536866 100644 (file)
@@ -75,7 +75,7 @@ function new(list)
        end
 
        function set:items()
-               return items;
+               return next, items;
        end
 
        function set:remove(item)