Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save globulon/1892394 to your computer and use it in GitHub Desktop.
Function Functor map alternate
def map[T, P >: T, U](source: (A) ⇒ T)(f: (P) ⇒ U): (A)⇒ U = (x: A) ⇒ f(source(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment