0

Что за func?

что происходит во второй функции? https://code.sololearn.com/caDy3Igu215n/?ref=app

22nd Nov 2017, 8:12 AM
Adilbyi Kurbanov
Adilbyi Kurbanov - avatar
2 Answers
+ 1
func is an argument of the function "do_twice". name of the function, more precise, the object as function, so the second function is read as: add(add(5,10),add(5,10)= (5+10)+(5+10)= 30
22nd Nov 2017, 11:18 AM
yuri
+ 1
все понял, спасибо))))
23rd Nov 2017, 8:23 PM
Adilbyi Kurbanov
Adilbyi Kurbanov - avatar