Skip to content

Question about Zip behaviour  #285

Description

@nhenin
main = (toList . zipAsyncly $ (,,) <$> s1 <*> s2 <*> s3) >>= print
    where s1 = fromFoldable [1, 2]
          s2 = fromFoldable [3, 4]
          s3 = fromFoldable [5, 6]
[(1,3,5),(2,4,6)]

I'm looking for a similar behaviour but where Zip produces a result as soon as one of the streams zipped produces an item. Like we add the last value produced of the other streams zipped with...

[(1,3,5),(1,4,5),(1,4,6),(2,4,6)] something like that for example... Tell me if my explanation is clear enough for you :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions