def pipeline(*iterators):
    """Wrap all iterators around each other in the given order."""
    pipeline = None
    for it in iterators:
        if pipeline is None:
            pipeline = it
        else:
            pipeline = it(pipeline)
    return pipeline
