SwiftCSV icon indicating copy to clipboard operation
SwiftCSV copied to clipboard

Make `enumerate` methods accept a callback that throws

Open thomasleese opened this issue 1 month ago • 1 comments

This updates the enumerateAsArray and enumerateAsDict methods to accept a row callback function that throws an error. If the function does throw an error it will be propogated to the caller of the enumerate method.

This is inspired by https://github.com/swiftcsv/SwiftCSV/pull/139 with the review comments addressed to hopefully get this functionality in to a release.

thomasleese avatar Dec 14 '25 14:12 thomasleese

Thanks a lot for contributing to SwiftCSV! We've invited you to join the SwiftCSV GitHub organization – no pressure to accept! If you'd like more information on what that means, check out our contributor guidelines.

DivineDominion avatar Dec 14 '25 19:12 DivineDominion

Thank you! 🙌

DivineDominion avatar Dec 16 '25 06:12 DivineDominion