gopher-lua
gopher-lua copied to clipboard
Add ForEachWithError to LTable
Provide a break capable, as well as error capable implementation of ForEach, allowing for early short-circuit and deep logging of error messages. Implement it underneath the current version, keeping only one code path for maintenance purposes, but allow multiple ways of calling this functionality as needed.
Changes proposed in this pull request:
- Adds
LTable.ForEachWithError() - Implements
LTable.ForEach()as a call toLTable.ForEachWithError()