- 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.
推薦閱讀
- Advanced Machine Learning with Python
- TypeScript Essentials
- 少年輕松趣編程:用Scratch創(chuàng)作自己的小游戲
- C語言程序設(shè)計(jì)基礎(chǔ)與實(shí)驗(yàn)指導(dǎo)
- Android 7編程入門經(jīng)典:使用Android Studio 2(第4版)
- Securing WebLogic Server 12c
- Mastering macOS Programming
- ExtJS高級(jí)程序設(shè)計(jì)
- OpenCV 4計(jì)算機(jī)視覺項(xiàng)目實(shí)戰(zhàn)(原書第2版)
- 智能搜索和推薦系統(tǒng):原理、算法與應(yīng)用
- Learning AWS
- SQL Server 2016 從入門到實(shí)戰(zhàn)(視頻教學(xué)版)
- Android技術(shù)內(nèi)幕(系統(tǒng)卷)
- Clojure for Finance
- SAS編程演義