+ 2
If I print this fun then why can't get output as sum? Please help.
2 Answers
+ 5
// a few things: return and and (this is non void function means) Int needed
fun add(a:Int, b:Int, lam:(Int,Int) -> Int): Int{
return lam(a,b)
}
+ 1
Thank you Sir. I got it.