
上QQ阅读APP看书,第一时间看更新
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: " The map() function does not give us the expected results, so we only use flatMap() function."
A block of code is set as follows:
object HelloWorldApp extends App{ println("Hello Scala World!") }
Any command-line input or output is written as follows:
For comprehension addition output: Some(Success(30))
Scala Future API addition output: Some(Success(30))
Scala Async API addition output: Some(Success(30))
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Go to Configure at the bottom right and click on the Plugins option available in the drop-down."
Warnings or important notes appear like this.
Tips and tricks appear like this.