- Kotlin Standard Library Cookbook
- Samuel Urbanowicz
- 63字
- 2021-07-23 19:05:56
Returning multiple data
Although Kotlin doesn't provide a multiple return feature, thanks to data classes and destructuring declarations, it is quite convenient to write functions that return a number of values of different types. In this recipe, we are going to implement a function returning the result of dividing two numbers. The result is going to contain the quotient and remainder values.
推薦閱讀
- 簡單高效LATEX
- MongoDB for Java Developers
- 看透JavaScript:原理、方法與實踐
- 實戰(zhàn)低代碼
- 手把手教你學C語言
- Modern JavaScript Applications
- Learning Python by Building Games
- Python時間序列預測
- Spring Boot實戰(zhàn)
- Kubernetes源碼剖析
- Building Serverless Web Applications
- 超簡單:用Python讓Excel飛起來(實戰(zhàn)150例)
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- 計算語言學導論
- Mastering Apache Camel