That function takes in some parameters, does some ...
# announcements
z
That function takes in some parameters, does some work with them, and spits out something new. I could inline this directly into some function in
B
, but I would like to extract it to clean up the code and make it easier for the reader to understand intent (via function naming) and reduce the cognitive load required to understand what
B
is doing. I could put it at the file level, but this function is only ever used internally by
B
and it may be tightly coupled with
B
(e.g., taking in or returning a nested private class).