Iterator Pattern
常見例句
- Figure 3 shows a class diagram of the iterator pattern.
圖 3 顯示了疊代器模式的類圖。 - Iterator is so common that it has ceased to be a formal pattern at all; it is just a feature of the language.
因爲(wèi)疊代器太常見了,所以它根本就算不上是正式的模式;它衹是一種語(yǔ)言的特性。 - The Composite pattern can be used to implement the composite service that encompasses other subservices, whereas the Iterator pattern can be used to implement the traversal of subservices.
Composite 模式可用於實(shí)現(xiàn)包含其他子服務(wù)的組郃服務(wù),而 Iterator 模式可用於實(shí)現(xiàn)子服務(wù)的遍歷。 返回 Iterator Pattern