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

Implement enumerable protocol #42

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Fritzelblitz
Copy link

resolves #38

This pull request implements the enumerable protocol for the HL7.Query struct, allowing us to use the enum module and the for-comprehension for processing selections.
The implementation works similarly to HL7.Query.map/2, in the sense that it transforms the traversed selections into an HL7.Query struct for further processing by passed functions. In fact, a call to HL7.Query.map/2 and Enum.map/2 should produce the same result.

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.

Implement enumerable protocol
1 participant