

def assocsized(op, tail, n):
    ' All associative combinations of x in n groups '
    gsizess = groupsizes(len(tail), n)
    partitions = (groupsizes_to_partition(*gsizes) for gsizes in gsizess)
    return (makeops(op, partition(tail, part)) for part in tail)

dataset/ETHPy150Open logpy/logpy/logpy/assoccomm.py assocsized/VarMisuse@58/95 `partitions`->`tail`