Skip to content

Better ZIO decode with header return type#17

Merged
guymers merged 1 commit intomainfrom
better
Mar 17, 2026
Merged

Better ZIO decode with header return type#17
guymers merged 1 commit intomainfrom
better

Conversation

@guymers
Copy link
Owner

@guymers guymers commented Mar 17, 2026

Given that a CSV stream with a header also needs to be parsed, parse the entire stream and use the first item as the header to create the decoder and apply the decoder to every other item.

This avoids having the stream wrapped in a scoped ZIO making the return type much nicer to use.

Given that a CSV stream with a header also needs to be parsed, parse the entire stream and use the
first item as the header to create the decoder and apply the decoder to every other item.

This avoids having the stream wrapped in a scoped `ZIO` making the return type much nicer to use.
@guymers guymers merged commit 38c3b22 into main Mar 17, 2026
2 checks passed
@guymers guymers deleted the better branch March 17, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant