<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Iterator - Page 13 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=iterator&amp;p=12">1.Previous</a><br />
<a accesskey="3" href="page.php?w=iterator&amp;p=14">3.Next</a>
</p>
<p>Several languages, such as Perl and Python, implement streams as iterators. In Python, iterators are objects representing streams of data. Alternative implementations of stream include <a href="page.php?w=data-driven_programming">data-driven</a> languages, such as <a href="page.php?w=AWK">AWK</a> and <a href="page.php?w=sed">sed</a>.</p>

<p><big>Contrast with indexing</big></p>
<p>Instead of using an iterator, many languages allow the use of a subscript operator and a <a href="page.php?w=loop_counter">loop counter</a> to access each element. Although</p><p>
<a accesskey="1" href="page.php?w=iterator&amp;p=12">1.Previous</a><br />
<a accesskey="3" href="page.php?w=iterator&amp;p=14">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
