Skip to content

Commit

Permalink
Update 06_Zsh-开发指南(第六篇-哈希表).md
Browse files Browse the repository at this point in the history
  • Loading branch information
goreliu authored Feb 10, 2020
1 parent 182970d commit c7af978
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 06_Zsh-开发指南(第六篇-哈希表).md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ a b c
```

好处:使用方便,而且支持的维数不受限制。

坏处:功能太单一,比如不能对 `hashmap[1]` 进行处理。

#### 用字符串分割访问来模拟多维哈希表
Expand All @@ -223,6 +224,7 @@ cc
```

好处:可以对 `hashmap[1]` 进行处理。

坏处:不大方便,性能也不好。而且功能同样受限,比如第一维只能是数组,不能是哈希表。可以支持更多维,但需要再增加新的分隔符,使用起来更麻烦。

### 总结
Expand Down

0 comments on commit c7af978

Please sign in to comment.