-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
Description
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 :-)