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

Add a merge generator #42

Merged
merged 4 commits into from
Apr 29, 2022
Merged

Add a merge generator #42

merged 4 commits into from
Apr 29, 2022

Conversation

nicorichard
Copy link
Contributor

Use loop to create a Merge generator which merges generators together and responds by taking 1 value from each in order

/// let genA = Generators.constant("A")
/// let genB = Generators.constant("B")
///
/// Generators.merge(genA, genB) // Produces values ABABABABABAB...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

little typo: Generators.merge([genA, genB])

@nicorichard nicorichard merged commit f7e35a8 into main Apr 29, 2022
@nicorichard nicorichard deleted the merge branch April 30, 2022 14:36
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.

2 participants