- 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.
推薦閱讀
- Java持續交付
- C++程序設計基礎教程
- Interactive Applications Using Matplotlib
- Learning Three.js:The JavaScript 3D Library for WebGL
- Python Data Analysis Cookbook
- Mastering JavaScript Design Patterns(Second Edition)
- Hands-On Full Stack Development with Spring Boot 2.0 and React
- 汽車人機交互界面整合設計
- Illustrator CC平面設計實戰從入門到精通(視頻自學全彩版)
- Solutions Architect's Handbook
- Emotional Intelligence for IT Professionals
- 黑莓(BlackBerry)開發從入門到精通
- WCF技術剖析(卷1)
- Flink核心技術:源碼剖析與特性開發
- Building UIs with Wijmo