- Swift High Performance
- Kostiantyn Koval
- 200字
- 2021-08-05 16:36:22
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: "First, let's add a nickname to the Person
class."
A block of code is set as follows:
var sam = Person(firstName: "Sam", lastName: "Bosh", nickName:"BigSam") sam = sam.changeNickName("Rockky")
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<type parameter : constraint >
func minElem<T : Comparable>(x: T, _ y: T) -> T {
return x < y ? x : y
}
Any command-line input or output is written as follows:
(lldb) repl 1> func isAllPositive(ar: [Int]) -> Bool { 2. let negatives = ar.filter { $0 < 0 } 3. return negatives.count == 0 4. }
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: "We will choose a Time Profiler template and click on Record."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
- C++案例趣學(xué)
- Bootstrap Site Blueprints Volume II
- UML和模式應(yīng)用(原書第3版)
- C語言程序設(shè)計(jì)(第3版)
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優(yōu)化計(jì)算
- 假如C語言是我發(fā)明的:講給孩子聽的大師編程課
- HDInsight Essentials(Second Edition)
- Visual Basic程序設(shè)計(jì)實(shí)踐教程
- Node.js Design Patterns
- 區(qū)塊鏈技術(shù)與應(yīng)用
- Frank Kane's Taming Big Data with Apache Spark and Python
- Lift Application Development Cookbook
- Orchestrating Docker
- Mastering Elixir
- SwiftUI極簡開發(fā)