pascalabcnet/PABCNetHelp/LangGuide/PABCSystemUnit/Files/Infinite sequences.html

15 lines
1.7 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<HTML><HEAD><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="Keyword" value="Cycle">
<param name="Keyword" value="Step"></object>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><link rel="StyleSheet" href="../../../default.css">
</HEAD><body><H1>Генерация бесконечных последовательностей</H1>
<table border=0 cellpadding=5><tr><td><code><b>function</b> Cycle&lt;T&gt;(Self: <b>sequence </b> <b>of</b> T): <b>sequence </b> <b>of</b> T;</code>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Повторяет последовательность бесконечное число раз</td></tr>
<tr><td><code><b>function</b> Step(Self: integer): <b>sequence </b> <b>of</b> integer;</code>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Возвращает бесконечную последовательность целых от текущего значения с шагом 1</td></tr>
<tr><td><code><b>function</b> Step(Self: integer; step: integer): <b>sequence </b> <b>of</b> integer;</code>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Возвращает бесконечную последовательность целых от текущего значения с шагом step</td></tr>
<tr><td><code><b>function</b> Step(Self: real; step: real): <b>sequence </b> <b>of</b> real;</code>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Возвращает бесконечную последовательность вещественных от текущего значения с шагом step</td></tr>
</table>
</body></HTML>