Skip to content
New issue

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

Add conversion from UCT to UCE with mapping block #41

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Add conversion from UCT to UCE with mapping block #41

merged 2 commits into from
Jan 10, 2024

Conversation

Jawnnypoo
Copy link
Contributor

Noticed this specific mapping was missing so I added it.

/**
* Converts [UCT] to a [UCE] by [mapping][map] the error state to [E].
*/
fun <C, E> UCT<C>.asUCE(map: () -> E): UCE<C, E> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The map function should probably be (Throwable) -> E

@Laimiux Laimiux merged commit b5ce0a0 into Laimiux:main Jan 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants