Fix range enumeration

This commit is contained in:
Emik 2026-02-28 16:11:39 +01:00
parent 5b3aad7081
commit 2a3c1338de
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF

View file

@ -137,7 +137,7 @@ function f.from(tbl, fpairs, step)
end
return f.new(function()
local iv = tbl + ik * (step or 1)
local iv = start + ik * (step or 1)
ik = ik + 1
if start > stop and iv >= stop or