gopher-lua icon indicating copy to clipboard operation
gopher-lua copied to clipboard

Add ForEachWithError to LTable

Open TechyShishy opened this issue 3 years ago • 0 comments

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 to LTable.ForEachWithError()

TechyShishy avatar Aug 30 '22 03:08 TechyShishy