human
I wrote the below code

    def _data_extractor(request):
        if (not submitted):
            return []
        data = []
        for param in submitted:
            i = 0
            for val in request.POST.getlist(param):
                if (len(data) == i):
                    data.append({})
                data[i][param] = val
                i += 1
        for kwargs in data:
            for recurrent in recurring:
                kwargs[recurrent] = request.POST.get(recurrent)
        initial = list(data)
        return {'initial': initial, 'data': data}
    return _data_extractor

What's a good function header?

=====
Here's a good function header?
assistant
#Here's a good function header.

def formset_data_extractor(recurring=[], submitted=[]):