Last active
November 12, 2017 13:02
-
-
Save mandubian/5da2c028cc3b9692920a0d4680ff189a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simple identity function | |
def f: A => A = identity | |
// if I have an implicit Cat[=>] in my scope | |
val K = implicitly[Cat[Function1]] | |
// I can rewrite f into the language of categories | |
def f = K.id[A] | |
// Both are equivalent by the CHL isomorphism... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment