homs = Hom(n,M,N)

This function computes a generating set of the degree n component of Hom(M,N) as a module over the coefficient ring of A = ring M.