May-09-2017, 08:35 PM
(May-09-2017, 08:32 PM)volcano63 Wrote: return a new encoded list - instead of changing the argument list in place (which is side-effect - considered bad practice?! )Yes, side-effects are generally-speaking not ideal, and don't gain anything here (sometimes modifying in-place is more efficient, but copies are being made here anyway).