This:
static void do_pipeline(int factor, int term) {
pipeline p = scanf_ints() | linear(factor, term) | printf_ints();
// Defined to mean:
// Read integers using scanf,
// apply the function f(n) = factor*n + term,
// print using printf.
p();