def makeops(op, lists):
    return tuple(l[0] if len(l) == 1 else build(op, l) for l in lists)
Construct operations from an op and parition lists
dataset/ETHPy150Open logpy/logpy/logpy/assoccomm.py/makeops