- Learn Scala Programming
- Slava Schmidt
- 215字
- 2021-06-10 19:35:38
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "In Scala 2.13, StringOps has been extended with option-returning methods for string literals parsing. Supported types include all numeric types and Boolean."
A block of code is set as follows:
object UserDb {
def getById(id: Long): User = ???
def update(u: User): User = ???
def save(u: User): Boolean = ???
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
scala> val user = User("John", "Doe", "jd@mail.me")
user: User = User(John,Doe,jd@mail.me)
scala> naiveToJsonString(user)
res1: String = { "name": "John", "surname": "Doe", "email": "jd@mail.me" }
Any command-line input or output is written as follows:
take
-S--c--a--l--a-- --2--.--1--3-
take
Lazy view constructed: -S-S-c-C-a-A-l-L-a-A- -
Lazy view forced: -S--c--a--l--a-- -List(S, C, A, L, A, )
Strict: List(S, C, A, L, A, )
Bold: Indicates a new term, an important word, or words that you see on screen.
Warnings or important notes appear like this.
Tips and tricks appear like this.
推薦閱讀
- Vue.js 2 and Bootstrap 4 Web Development
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第3版)
- 概率成形編碼調制技術理論及應用
- 用戶體驗增長:數字化·智能化·綠色化
- 深入淺出React和Redux
- Python程序設計與算法基礎教程(第2版)(微課版)
- AMP:Building Accelerated Mobile Pages
- Penetration Testing with the Bash shell
- INSTANT Apache ServiceMix How-to
- Python機器學習與量化投資
- Natural Language Processing with Python Cookbook
- Developing RESTful Web Services with Jersey 2.0
- 零基礎入門Python數據分析與機器學習
- Learning Predictive Analytics with R
- 換個姿勢學C語言