Задать вопрос

Тел: +7 965 3737 888

529

Просмотров

0

Ответов

Yet another list partitioning filter

A simple template filter for breaking a list into sublists of a given length, you might use this on an ecommerce product grid where you want an arbitrary number of rows of fixed columns. Unlike the other partitioning filters I've seen, this doesn't try to distribute the rows evenly, instead it fills each row for moving onto the next.

This filter preserves the ordering of the input list.

Вопрос полезен? Да0/Нет0
file_2326.py(476.0б)
None