官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 青铜峡市| 潼关县| 阳谷县| 花莲市| 建瓯市| 泊头市| 龙胜| 剑川县| 平罗县| 崇信县| 即墨市| 潞城市| 田阳县| 呼和浩特市| 突泉县| 金沙县| 夏津县| 延长县| 肇东市| 宜宾市| 马鞍山市| 边坝县| 鄂托克旗| 江山市| 东方市| 隆尧县| 泉州市| 龙口市| 高平市| 芷江| 淳安县| 社旗县| 扶绥县| 思茅市| 会泽县| 秀山| 民丰县| 陇川县| 雅江县| 丹东市| 天水市|