DesignPatterns에서 BehavioralPatterns의 하나
무언가 반복해야할 일은 본 패턴을 사용한다. hasNext와 next만으로 나중에 coupling을 방지할 수 있다.
Stureture
Example
관련정보들
IteratorPattern IteratorPattern
논의
Python2.3부터 내장함수로 iterator객체를 만들수 있다. See Iterator
DesignPatterns에서 BehavioralPatterns의 하나
무언가 반복해야할 일은 본 패턴을 사용한다. hasNext와 next만으로 나중에 coupling을 방지할 수 있다.
IteratorPattern IteratorPattern
Python2.3부터 내장함수로 iterator객체를 만들수 있다. See Iterator