def split(items, partitions):
    """
    Divide a collection into multiple partitions.
    If elements do not split equally, the last
    partition will have fewer elements.
    """
    split = []

    if partitions > 0:
        for i in range(0, len(items), partitions):
            split.append(items[i: i+partitions])
    return split