Skip to content

Instantly share code, notes, and snippets.

@folone
Created July 7, 2011 09:18
Show Gist options
  • Save folone/1069162 to your computer and use it in GitHub Desktop.
Save folone/1069162 to your computer and use it in GitHub Desktop.
trait ~>[F[_],G[_]] {
def apply[A](a: F[A]): G[A]
}
type Id[A] = A
def apply[B](f: Id ~> List, b: B, s: String): (List[B], List[String]) = (f(b), f(s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment