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
How about having a suspending version of the fold operator? Something like(please excuse the name):
fold
suspend fun foldSuspend(fnL: suspend (L) -> Any, fnR: suspend (R) -> Any): Any = when (this) { is Left -> fnL(a) is Right -> fnR(b) }
Currently, it is:
fun fold(fnL: (L) -> Any, fnR: (R) -> Any): Any = when (this) { is Left -> fnL(a) is Right -> fnR(b) }
Is it a good practice to keep 2 versions of the same function?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How about having a suspending version of the
fold
operator? Something like(please excuse the name):Currently, it is:
Is it a good practice to keep 2 versions of the same function?
The text was updated successfully, but these errors were encountered: