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

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: "An anonymous enum declaration does not declare a new type."

A block of code is set as follows:

void healthBasedSwap(int[] squad1, int[] squad2) {
  import std.algorithm : sort, SwapStrategy;
  import std.range : chain;
  squad1.chain(squad2).sort!((a,b) => a > b,
  SwapStrategy.unstable)();
} 

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

void healthBasedSwap(int[] squad1, int[] squad2) {
  import std.algorithm : sort, SwapStrategy;
  import std.range : chain;
  squad1.chain(squad2).sort!((a,b) => a > b,
 SwapStrategy.unstable)();
} 

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

dmd hello.d

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 尼勒克县| 鲁甸县| 吉隆县| 洛浦县| 大方县| 分宜县| 保康县| 枝江市| 旌德县| 仙居县| 莱芜市| 克什克腾旗| 长宁县| 乐业县| 吉林省| 金秀| 城固县| 二连浩特市| 陆丰市| 额尔古纳市| 韩城市| 玉环县| 延川县| 清徐县| 天等县| 琼中| 临海市| 岳阳市| 姚安县| 绥滨县| 新建县| 嘉黎县| 沙河市| 桐庐县| 根河市| 泊头市| 利辛县| 四川省| 城步| 公主岭市| 衡阳县|