Changeset

7258:b8f60dd8e99a

util.iterators: Return initial var from upstream iterator [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Thu, 10 Mar 2016 17:49:46 +0000
parents 7257:425bc672d60b
children 7259:d8300985f2bb
files util/iterators.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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