I would also agree that function is the wrong name.<p>Procedure however might be a good enough name, less connoted than Recipe.<p>Quoting the Elements of Programming by Alexander Stepanov:<p>&quot;A Procedure is a sequence of instructions that modifies the state of some objects; it may also construct or destroy objects.&quot;<p>With the definition of Object as:<p>&quot;An Object is a representation of a concrete entity as a value in memory&quot;