Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Last active January 3, 2020 08:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/d5ab4ba5d8a5142dde9f4d4c736e3ecb to your computer and use it in GitHub Desktop.
Save dminuoso/d5ab4ba5d8a5142dde9f4d4c736e3ecb to your computer and use it in GitHub Desktop.
Associativity:
(T :.: T :.: T) a
\ / /
join /
\ /
join ===> T a ---
|
|
|
(T :.: T :.: T) a Must be the same
\ \ / |
\ join |
\ / |
join ===> T a ---
Left identity:
If this layer is introduced via ⌜return⌝, then
|
|
v
(T :.: T) a ----------|
\ / Must be the same
join ===> T a ---|
Right identity:
If this layer is introduced via ⌜return⌝, then
|
|
v
(T :.: T) a ----------|
\ / Must be the same
join ===> T a ---|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment