Return table in foreach for chaining

This commit is contained in:
Sheepolution 2022-03-01 02:03:33 +01:00 committed by GitHub
parent 0fdddab5b9
commit 3c6aaf1a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,7 @@ function functional.foreach(t, f)
return result
end
end
return t
end
--performs a left to right reduction of t using f, with seed as the initial value