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

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, Unit is the same as the void, it does not represent any type."

A block of code is set as follows:

object First {
def main(args: Array[String]): Unit = {
val double: (Int => Int) = _ * 2
(1 to 10) foreach double .andThen(println)
}
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

package lsp

object FirstApp extends App {
val double: (Int => Int) = _ * 2
(1 to 10) foreach double .andThen(print)
}

Any command-line input or output is written as follows:

sbt console

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: "Click on the Create New Project function."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 平陆县| 盐池县| 桑日县| 五指山市| 博罗县| 手游| 建始县| 嫩江县| 许昌市| 保靖县| 什邡市| 平昌县| 深水埗区| 新密市| 阳朔县| 资源县| 嘉祥县| 邵阳县| 云林县| 防城港市| 枝江市| 普格县| 防城港市| 浠水县| 泽州县| 昌黎县| 灵山县| 廊坊市| 象州县| 锦州市| 綦江县| 永清县| 浦北县| 余江县| 略阳县| 鄢陵县| 顺义区| 竹溪县| 九龙城区| 东乡县| 通河县|