Skip to content

Instantly share code, notes, and snippets.

@mandubian
Created November 11, 2017 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandubian/c2e791e128df6011b1c7f46c4614973f to your computer and use it in GitHub Desktop.
Save mandubian/c2e791e128df6011b1c7f46c4614973f to your computer and use it in GitHub Desktop.
implicit val Function1Cat: Cat[Function1] = new Cat[Function1] {
def id[A]: A => A = identity
def ○[A, B, C]: (B => C) => (A => B) => (A => C) = f => g => f compose g
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment