Because having three specialized functions for three specialized operations makes it easier to see what a given piece of code is doing. One function per function.
Because having three specialized functions for three specialized operations makes it easier to see what a given piece of code is doing. One function per function.