# generator examples

[JS](https://lochiwei.gitbook.io/web/js)⟩ [iteration](https://lochiwei.gitbook.io/web/js/iteration) ⟩ custom generators

{% tabs %}
{% tab title="💈範例" %}

* [list](https://lochiwei.gitbook.io/web/js/iteration/generator/examples/list "mention") - <mark style="color:yellow;">**finite**</mark> arithmetic sequence.
* [integers](https://lochiwei.gitbook.io/web/js/iteration/generator/examples/integers "mention") - <mark style="color:red;">**infinite**</mark> non-negative integers: 0, 1, 2, 3 ...
* [fibonacci](https://lochiwei.gitbook.io/web/js/iteration/generator/examples/fibonacci "mention") - <mark style="color:red;">**infinite**</mark>/<mark style="color:yellow;">**finite**</mark> fibonacci numbers: 1, 1, 2, 3, 5, 8 ...
* [seq](https://lochiwei.gitbook.io/web/js/iteration/generator/examples/seq "mention") - yield values <mark style="color:yellow;">**sequentially**</mark>.
* [interleave](https://lochiwei.gitbook.io/web/js/iteration/generator/examples/interleave "mention") - <mark style="color:yellow;">**interleave**</mark> the values of [iterable](https://lochiwei.gitbook.io/web/js/iteration/iterable "mention")s.
* [zip](https://lochiwei.gitbook.io/web/js/iteration/generator/examples/zip "mention") - <mark style="color:yellow;">**zip**</mark> [iterable](https://lochiwei.gitbook.io/web/js/iteration/iterable "mention")s into a single [func](https://lochiwei.gitbook.io/web/js/iteration/generator/func "mention").
  {% endtab %}

{% tab title="👥 相關" %}

* [Broken link](https://lochiwei.gitbook.io/web/js/iteration/generator/broken-reference "mention")s are [iterable](https://lochiwei.gitbook.io/web/js/iteration/iterator/iterable "mention")s.
  {% endtab %}
  {% endtabs %}
