In: Computer Science
In Scala, what is First-order Function, Recursion, and Immutability? How to write them? Please provide some examples and details to explain it. Also, what will be the benefits of using them when writing codes.
Answers:-
Scala
Following are the steps write code in scala are as follows:
object ScalaExam
{
def main(args:Array[String])
{
println "HELLO SCALA"
}
}
After code steps