<filename>poop/hfdp/adapter/iterenum/iterator_enumeration_test_drive.py<gh_stars>10-100
from poop.hfdp.adapter.iterenum.enumeration import Enumeration
from poop.hfdp.adapter.iterenum.iterator_enumeration import IteratorEnumeration


def main() -> None:
    iterator_enumeration: Enumeration[int] = IteratorEnumeration(
        iter([1, 2, 3, 4, 5])
    )
    while iterator_enumeration.has_more_elements():
        print(iterator_enumeration.next_element())

<filename>poop/hfdp/adapter/iterenum/iterator_enumeration_test_drive.py<gh_stars>10-100
from poop.hfdp.adapter.iterenum.enumeration import Enumeration
from poop.hfdp.adapter.iterenum.iterator_enumeration import IteratorEnumeration


def main() -> None:
    iterator_enumeration: Enumeration[int] = IteratorEnumeration(
        iter([1, 2, 3, 4, 5])
    )
    while iterator_enumeration.has_more_elements():
        print(iterator_enumeration.next_element())
