3 ms·
and in Python: def pipeeither(l): def pipeeither(v): return reduce(lambda a, e: e(a[1]) if a[0] is None else a, l, (None, v)) r
by bradwood 4y ago
and in Python:
def pipeeither(l):
def pipeeither(v):
return reduce(lambda a, e: e(a[1]) if a[0] is None else a, l, (None, v))
return pipeeither