Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

how to make anonymous function in scala

() => scala.util.Random.nextInt
// or //
(x: Int, y: Int) => (x + 1, y + 1)
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #anonymous #function #scala
ADD COMMENT
Topic
Name
4+8 =