Unit Testing, Property Testing, Elixir Language, Elixirlang, Refactoring.
invariants I’ve already got. The code I’ve currently got in the library looks like this: def partiphify!(list, k) when is_list(list) and is_integer(k) do ceil_div = fn a, b -> Float.ceil(a / b) end with chunk_size when chunk_size > 0 <- list |> Enum.count() |> Integer.floor_div(k), true <- list |>