- 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.
推薦閱讀
- 數(shù)據(jù)科學(xué)實(shí)戰(zhàn)手冊(cè)(R+Python)
- Mastering Ext JS(Second Edition)
- Objective-C Memory Management Essentials
- GeoServer Cookbook
- JS全書:JavaScript Web前端開發(fā)指南
- Mastering Apache Spark 2.x(Second Edition)
- RESTful Java Web Services(Second Edition)
- C專家編程
- Python從入門到精通
- Learning Node.js for .NET Developers
- QGIS Python Programming Cookbook(Second Edition)
- Django實(shí)戰(zhàn):Python Web典型模塊與項(xiàng)目開發(fā)
- Android應(yīng)用開發(fā)實(shí)戰(zhàn)
- Kotlin Programming By Example
- Maven for Eclipse