-
-
Save pedrofurla/4063865 to your computer and use it in GitHub Desktop.
scala Function1
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
object Function1Stuff { | |
def flatMap[T, A, B]: Function1[T, A] => (A => Function1[T, B]) => Function1[T, B] = | |
sys.error("todo") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
object Function1Stuff {
def flatMap[T, A, B]: Function1[T, A] => (A => Function1[T, B]) => Function1[T, B] =
(ta: T => A) => ( atb: A => T => B) => { (t:T) => atb(ta(t))(t) }
}