Predefined first argument of sum

Report a typo

We created a summator using HOF:

def generateSummator(a: Int): Int => Int = 
  b => b + a

val summator = generateSummator(1)

What will be the result of executing the following code?

summator(42)
Enter a number
___

Create a free account to access the full topic