util.iterators: Return initial var from upstream iterator [luacheck]
authorMatthew Wild <mwild1@gmail.com>
Thu, 10 Mar 2016 17:49:46 +0000 (17:49 +0000)
committerMatthew Wild <mwild1@gmail.com>
Thu, 10 Mar 2016 17:49:46 +0000 (17:49 +0000)
util/iterators.lua

index 92f75189870538f149305e2860b180e43cf818c9..99b5f0904ff147521b68d5817f96ed5e82ae2c8e 100644 (file)
@@ -93,7 +93,7 @@ function it.head(n, f, s, var)
                end
                c = c + 1;
                return f(s, var);
-       end, s;
+       end, s, var;
 end
 
 -- Skip the first n items an iterator returns