Created
September 13, 2019 19:44
-
-
Save evaporei/0b4c130d11fb9e03a3dc8c03c2c05d77 to your computer and use it in GitHub Desktop.
Category Theory - Identity
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
| function identity<T>(t: T): T { | |
| return t | |
| } | |
| // identity ∘ f == f | |
| // f ∘ identity == f | |
| // | |
| // Ou seja, uma função `f` composta com a | |
| // identidade sempre da o mesmo resultado, | |
| // independente da ordem da aplicação |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment