subroutine

noun
  1. a set of instructions designed to perform a frequently used operation within a computer program
  2. Usage: computing

Examples