Polynomial

Report a typo

Write a lambda expression that calculates ax2+bx+ca \cdot x^2+b \cdot x+c, where a, b, c are variables and x is the lambda parameter. The lambda is to have the (Int) -> Int type. Note that variables a, b, c are already declared.

Write a program in Kotlin
val lambda: (Int) -> Int = TODO("Provide implementation")
___

Create a free account to access the full topic