Core concept
val add: (Int, Int) => Int = (a, b) => a + b
val list = List(add, (a, b) => a - b)Advertisement
How it works
Wrapping vs primitive Function
Advertisement
Trade-offs + gotchas
Functional programming, DI, strategy patterns.