拆解 Function 六大姿势 - 使用 Kotlin 开发Android APP
1.基本函数定义
2.带有参数的函数定义
3.函数有回传值定义
4.函数有默认参数值定义
5.命名参数的方式来呼叫函数
6.单行表达式函数
资料取自:从零开始学 Kotlin 程式设计 https://goo.gl/SGBzn1
https://imgur.com/jKaqvLO.png
https://imgur.com/H9fIjPm.png
https://imgur.com/Xx0IS3S.png
https://imgur.com/xvyYEXp.png
https://imgur.com/9Pam3ge.png
https://imgur.com/Zllpee7.png
https://imgur.com/EPmlyAO.png
https://imgur.com/yoxJ20E.png
https://imgur.com/aedZMxr.png