Can a mutator method modify a variable/object and return it?
<p>Is it okay to write a mutator method that modifies a variable/object and returns a value? For example, a function implementing a sorting algorithm that returns a sorted array?</p>

<p>Would this be considered a mutator method?</p>
