Created
November 9, 2020 03:43
-
-
Save drawers/6485e640131e1ecd1ab416f7d12de7e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ForOption private constructor() { companion object } | |
typealias OptionOf<A> = arrow.Kind<ForOption, A> | |
@Suppress("UNCHECKED_CAST", "NOTHING_TO_INLINE") | |
inline fun <A> OptionOf<A>.fix(): Option<A> = | |
this as Option<A> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment