# HG changeset patch # User Matthew Wild # Date 1457632186 0 # Node ID b8f60dd8e99ab452c914a227ad0e9122a4e53fe2 # Parent 425bc672d60b14dff61e839b185c714e5ac0b0d7 util.iterators: Return initial var from upstream iterator [luacheck] diff -r 425bc672d60b -r b8f60dd8e99a util/iterators.lua --- a/util/iterators.lua Thu Mar 10 17:48:53 2016 +0000 +++ b/util/iterators.lua Thu Mar 10 17:49:46 2016 +0000 @@ -93,7 +93,7 @@ end c = c + 1; return f(s, var); - end, s; + end, s, var; end -- Skip the first n items an iterator returns