---
# System prepended metadata

title: Pipeline

---

# Pipeline

As part of a data processing pipeline, complete the implementation of the _makePipeline_ function:

Example usage: 

```scala
val functions: List[Int => Int] = List(
    x => x * 3, 
    x => x + 1, 
    x => x / 2
)

val f = makePipeline(functions)

f(3) // should return 5
```


# Implementation

```scala

def makePipeline[T](functions: List[T => T]): T => T = {
  (x: T) => {
    
  }
}

```