Unit Testing, Property Testing, Elixir Language, Elixirlang, Refactoring.
false <- Enum.empty?(lists) do [current_list | rest] = lists new_buckets = distribute(current_list, buckets) distribute_extra({rest, new_buckets}) else _ -> buckets end end If that code doesn’t immediately make sense to you, that’s okay. I dissect it in a previous post. It made perfect sense when