Skip to content

Instantly share code, notes, and snippets.

@globulon
Created February 23, 2012 10:56
Show Gist options
  • Select an option

  • Save globulon/1892260 to your computer and use it in GitHub Desktop.

Select an option

Save globulon/1892260 to your computer and use it in GitHub Desktop.
Function Functor
//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