I’ll share some advice I was given.
- Define a function
_funthat does the bulk of the work. Then have methodsfun(a, b, c)andfun(a, b)both call_funinternally but with different pre- and post-processing above and below respectively. - You can use a distinct
structrather thannothingto define methods for your different cases: Application Code Organization - #15 by lmiq.