Partial Function

Run Settings
LanguageScala
Language Version
Run Command
import java.util.Date object Main extends App { def sum(a:Int,b:Int,c:Int) = a+b+c //println(sum (1,2,3)) val f = sum(20,_:Int,_:Int) println(f(5,6)) val date = new Date //val message = "Message 1" val dt = (date:Date,message:String) => println(date + " " + message) val newdt = dt(date,_:String) newdt("This is message 1") }
Editor Settings
Theme
Key bindings
Full width
Lines