In the following example we check that the map does implement the composition map $$ \mathrm{Hom}(M,N) \otimes \mathrm{Hom}(N,P) \to \mathrm{Hom}(M,P). $$
|
|
|
|
|
|
|
|
|
|
The modules should be defined over the same ring.
The object compose is a method function with options.