Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoder that, given an array of values, apply the literal for each value of the array. #54

Open
gianfrancopagliaroto opened this issue Nov 24, 2022 · 1 comment
Labels
good first issue Good for newcomers

Comments

@gianfrancopagliaroto
Copy link

This would solve situations like this:

'key' => Decoders::union( Decoders::literal("value1"), Decoders::literal("value2"), Decoders::literal("value3"), . . . )

@ilario-pierbattista
Copy link
Member

Hi @gianfrancopagliaroto, are you asking to add syntactic sugar for this?
Could you provide a sample?

@ilario-pierbattista ilario-pierbattista added the good first issue Good for newcomers label Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants