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

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The cancel() method forces the test to be interrupted."

A block of code is set as follows:

test("one plus one with result") {
  val two = 2
  assertResult(two) { 1 + 1 }
}

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

 $ sbt test [info] Loading project definition from /helloworld/project [info] Set current project to Chap1 (in build file:/Packt/ helloworld /) [info] Compiling 1 Scala source to /Packt/ helloworld 
 /target/scala/classes...

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Tail-call optimization is where we can escape allocating a new stack frame for a function."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 红桥区| 静安区| 河曲县| 安平县| 汝城县| 聂拉木县| 微山县| 常熟市| 宾阳县| 邢台市| 樟树市| 普宁市| 金川县| 合作市| 霸州市| 福鼎市| 临颍县| 靖安县| 缙云县| 中牟县| 汝阳县| 逊克县| 封开县| 田东县| 新建县| 平谷区| 错那县| 临邑县| 博客| 渑池县| 喀什市| 越西县| 开鲁县| 定边县| 潍坊市| 兴海县| 南通市| 顺义区| 东港市| 辉县市| 铜梁县|