Question : scala anonymous function
Answered by : david-alfredo-quintero
val square = (x: Double) => x*x
Source : | Last Update : Mon, 25 Apr 22
Question : scala anonymous function
Answered by : shriram-s-g
i => i * 2
Source : https://docs.scala-lang.org/overviews/scala-book/anonymous-functions.html | Last Update : Thu, 14 Apr 22
Question : how to make anonymous function in scala
Answered by : asir-in-tisar
() => scala.util.Random.nextInt
// or //
(x: Int, y: Int) => (x + 1, y + 1)
Source : https://www.baeldung.com/scala/functions-methods | Last Update : Sat, 14 May 22