Now with 1D partitioning and lambda expressions.