Unit Testing, Property Testing, Elixir Language, Elixirlang, Refactoring.
But before I do, I want better unit tests. The code in question is the partiphify!/2 code from the morphix library. Morphix is a small Elixir library of convenience functions for Enums. partiphify!/2 takes a list l and an integer k, and divides the list as evenly as possible into k sublists. In the