This commit is contained in:
Xargin
2016-10-10 14:53:50 +08:00
parent 7d40fb4d28
commit ef1d302ae6
6 changed files with 12 additions and 12 deletions

View File

@@ -105,7 +105,7 @@ fmt.Println(Equal([]string(nil), []string{})) // "true"
fmt.Println(Equal(map[string]int(nil), map[string]int{})) // "true"
```
Equal函数甚至可以处理类似12.3章中导致Display陷入陷入死循环的带有环的数据。
Equal函数甚至可以处理类似12.3章中导致Display陷入死循环的带有环的数据。
```Go
// Circular linked lists a -> b -> a and c -> c.
@@ -124,4 +124,4 @@ fmt.Println(Equal(a, c)) // "false"
**练习 13.1** 定义一个深比较函数,对于十亿以内的数字比较,忽略类型差异。
**练习 13.2** 编写一个函数,报告其参数是否循环数据结构。
**练习 13.2** 编写一个函数,报告其参数是否循环数据结构。