0

Are these two ways of defining a function equivalent in Scala or there are some meaningful differences?

def add5: Int => Int = (x: Int) => x + 5
def add5(x: Int): Int = x + 5
Fred_03
  • 11
  • 2

0 Answers0