Replies: 1 comment 2 replies
-
|
Would Cats' |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if it makes sense to have a convenience map-like function on Streams for when the elements have a
Functorinstance.This could make mapping things less boilerplatey. For example:
What I don't really like is the
.map(_.map(...))part. If instead I had something along the lines of:I could write:
I'm wondering if this is a good idea and I'm curious to hear your thoughts on that.
(For context: we're doing something like that https://iravid.com/posts/using-cats-with-reactive-kafka.html, so we're kinda forced to always carry around the
Messagetype in our stream)Beta Was this translation helpful? Give feedback.
All reactions