Any of several enzymes that catalyze the formation of a long-chain molecule by linking smaller molecular units, as nucleotides with nucleic acids.