Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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