Created
February 23, 2012 10:56
-
-
Save globulon/1892260 to your computer and use it in GitHub Desktop.
Function Functor
This file contains hidden or 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
| //Function type being | |
| (A) ⇒ T | |
| //we apply | |
| (T) ⇒ U | |
| //the returned type will be | |
| (A) ⇒ U | |
| def map[T, U](source: (A) ⇒ T)(f: (T) ⇒ U): (A)⇒ U |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment