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

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.
主站蜘蛛池模板: 茌平县| 来宾市| 玉山县| 杨浦区| 祁连县| 沙洋县| 贵港市| 西和县| 镇坪县| 安义县| 健康| 崇文区| 五寨县| 远安县| 高邮市| 阿鲁科尔沁旗| 方城县| 明溪县| 崇礼县| 泸西县| 绥滨县| 洞头县| 宜君县| 陵川县| 独山县| 海原县| 丰台区| 台安县| 惠安县| 平度市| 镇康县| 塘沽区| 万荣县| 靖宇县| 阿克苏市| 金寨县| 铅山县| 云梦县| 金华市| 鄂托克旗| 时尚|