- 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.
推薦閱讀
- Google Flutter Mobile Development Quick Start Guide
- 案例式C語言程序設計
- Learning ASP.NET Core 2.0
- Mastering Scientific Computing with R
- Scratch真好玩:教小孩學編程
- Mastering Ext JS
- SQL經典實例(第2版)
- 青少年學Python(第1冊)
- 學習OpenCV 4:基于Python的算法實戰
- ServiceNow:Building Powerful Workflows
- Clojure for Java Developers
- 人工智能算法(卷1):基礎算法
- R語言數據挖掘:實用項目解析
- JavaScript Concurrency
- Bitcoin Essentials