Original code:
object Pipeline { def makePipeline[T](functions: (T => T)*): (T => T) = { (arg: T) => { arg } } def main(args: Array[String]) = { println(makePipeline((x: Int) => x * 3, (x: Int) => x + 1, (x: Int) => x / 2)(3)) } }
Dashboard
Start Trial
Sign In
Home
Tour
Tests
Questions
Pricing
Resources
Blog
Read Evidence-Based Hiring
Support
For Jobseekers
© TestDome, 2021.