- Hands-On Data Analysis with Scala
- Rajesh Gupta
- 156字
- 2021-06-24 14:51:03
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: "Create a package called handson.example by expanding to src/main/scala and right-clicking on this folder."
A block of code is set as follows:
scala> def factorial(n: Int): Long = if (n <= 1) 1 else n * factorial(n-1)
factorial: (n: Int)Int
scala> factorial(5)
res0: Long = 120
Any command-line input or output is written as follows:
$ brew install sbt@1
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 Create New Project, and then click on Scala and select the sbt console."
Warnings or important notes appear like this.
Tips and tricks appear like this.