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

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.

主站蜘蛛池模板: 富宁县| 元氏县| 神池县| 仁怀市| 普兰店市| 夹江县| 裕民县| 丰镇市| 龙游县| 新泰市| 冷水江市| 天津市| 鄂伦春自治旗| 格尔木市| 朝阳区| 武威市| 东乌| 屯昌县| 河曲县| 昌江| 福安市| 沾化县| 田阳县| 沅江市| 昌乐县| 宜兴市| 图片| 嘉峪关市| 新干县| 乐平市| 手机| 长岭县| 屯门区| 运城市| 叶城县| 宁远县| 永和县| 滨海县| 三台县| 中西区| 侯马市|