Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
# | name | LHS | RHS | |
1 | Left identity | unit a ⟹ f | ≡ | f a |
2 | Right identity | m ⟹ unit | ≡ | m |
3 | Associativity | (m ⟹ f) ⟹ g | ≡ | m ⟹ (x ↦ f x ⟹ g) |
# | name | Input | Output |
1 | Left identity | Unit[a]⟹f | f[a] |
2 | Right identity | {a}⟹Unit | {a} |
3 | Associativity LHS | ({a}⟹({f1[#1]}&))⟹({f2[#1]}&) | {f2[f1[a]]} |
4 | Associativity RHS | {a}⟹Function[{x},{f1[x]}⟹({f2[#1]}&)] | {f2[f1[a]]} |
|
# | name | Input | Output |
1 | Left identity | MaybeUnit[a]⟹f | f[a] |
2 | Right identity | Maybe[a]⟹MaybeUnit | Maybe[a] |
3 | Associativity LHS | (Maybe[a]⟹(Maybe[f1[#1]]&))⟹(Maybe[f2[#1]]&) | Maybe[f2[f1[a]]] |
4 | Associativity RHS | Maybe[a]⟹Function[{x},Maybe[f1[x]]⟹(Maybe[f2[#1]]&)] | Maybe[f2[f1[a]]] |