We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tuples are missing a method that would return nothing, void. The method signature would be void tap(Closure /*will all tuple elements as input arg*/).
void
void tap(Closure /*will all tuple elements as input arg*/)
The use case is when you need to e.g. just to log elements, send something to backend, etc. Yes, the side-effects. :-)
A similar case is reported for collections: #2676
Can you please consider it so that we don't have to workaround it?
Workaround
Tuple.of(a, b).apply((in1, in2) -> { // some side-effects return "ignored" })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tuples are missing a method that would return nothing,
void
.The method signature would be
void tap(Closure /*will all tuple elements as input arg*/)
.The use case is when you need to e.g. just to log elements, send something to backend, etc. Yes, the side-effects. :-)
A similar case is reported for collections: #2676
Can you please consider it so that we don't have to workaround it?
Workaround
The text was updated successfully, but these errors were encountered: