拆解 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