reduceby takes callable init keyword argument