- Learning Scala Programming
- Vikash Sharma
- 104字
- 2021-06-30 19:07:48
Literals
In the previous discussion, we've seen a String literal and an Integer too. Here, we'll discuss all available literals, and how to define them in Scala. If you're coming from a Java background, then quite a few will be the same for you: Integer, Floating point, Boolean, Character, and String are similar. Along with those, the Tuple and Function literals can be treated as something new to learn. All the literals are listed as follows:
- Integer literals
- Floating point literals
- Boolean literals
- Character literals
- String literals
- Symbol literals
- Tuple literals
- Function literals
We'll discuss them one by one. Let's start with Integer literals.
推薦閱讀
- WebAssembly實戰
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- 深入實踐Spring Boot
- Mastering Julia
- Swift 3 New Features
- Flash CS6中文版應用教程(第三版)
- Oracle BAM 11gR1 Handbook
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- C# 8.0核心技術指南(原書第8版)
- 深入理解Android:Wi-Fi、NFC和GPS卷
- Python機器學習算法: 原理、實現與案例
- Unity 3D/2D移動開發實戰教程
- Mastering Web Application Development with AngularJS
- Frank Kane's Taming Big Data with Apache Spark and Python
- Visual C++程序開發范例寶典