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

feat: introduce zipAll function #19

Merged
merged 1 commit into from
Oct 16, 2023
Merged

feat: introduce zipAll function #19

merged 1 commit into from
Oct 16, 2023

Conversation

geminicaprograms
Copy link
Contributor

It combines elements from this and other sources in tuples handling ealy completion with defaults e.g.:

  Source.empty[Int].zipAll(Source.empty[String], -1, "foo").toList      // List()
  Source.empty[Int].zipAll(Source.fromValues("a"), -1, "foo").toList    // List((-1, "a"))
  Source.fromValues(1).zipAll(Source.empty[String], -1, "foo").toList   // List((1, "foo"))
  Source.fromValues(1).zipAll(Source.fromValues("a"), -1, "foo").toList // List((1, "a"))

It combines elements from this and other sources in tuples handling ealy
completion with defaults e.g.:

  Source.empty[Int].zipAll(Source.empty[String], -1, "foo").toList      // List()
  Source.empty[Int].zipAll(Source.fromValues("a"), -1, "foo").toList    // List((-1, "a"))
  Source.fromValues(1).zipAll(Source.empty[String], -1, "foo").toList   // List((1, "foo"))
  Source.fromValues(1).zipAll(Source.fromValues("a"), -1, "foo").toList // List((1, "a"))
@geminicaprograms geminicaprograms self-assigned this Oct 16, 2023
@adamw adamw merged commit 12e80dd into master Oct 16, 2023
4 checks passed
@adamw
Copy link
Member

adamw commented Oct 16, 2023

Nice, thanks! :)

@geminicaprograms geminicaprograms deleted the feat_zipAll branch October 17, 2023 11:23
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