def pipeline(value, *funcs):
    """ Given an initial value and a list of functions, apply the functions repeatedly and
    return the final result."""
    ret = value
    for func in funcs:
        ret = func(ret)
    return ret