Stable Partitioning Algorithm With No Side Effects

That’s awesome, I was half-expecting to find a function like this in the Erlang standard library :smiley: