If I print this fun then why can't get output as sum? Please help. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
Pankaj Gautam - avatar
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) }
3rd Jan 2022, 2:15 PM
JaScript
JaScript - avatar
+ 1
Thank you Sir. I got it.
3rd Jan 2022, 4:09 PM
Pankaj Gautam
Pankaj Gautam - avatar