+ 2

If I print this fun then why can't get output as sum? Please help.

https://code.sololearn.com/cOk7BkDPKp91/?ref=app

3rd Jan 2022, 2:00 PM
Pankaj Gautam
2 Réponses
+ 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) }
3rd Jan 2022, 2:15 PM
JaScript
JaScript - avatar
+ 1
Thank you Sir. I got it.
3rd Jan 2022, 4:09 PM
Pankaj Gautam