HaxeFoundation / HaxeFoundation/haxe.org-comments
[code.haxe.org] Abstract types - Using Iterators as Generic Type Parameters
- Dominant language
- No language data
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# Using Iterators as Generic Type Parameters - Abstract types - Haxe programming language cookbook
Iterators are a helpful Haxe structure. Any structure that implements the next and hasNext functions with the appropriate signature will allow you build a for loop. Arrays have an iterator() function that returns exactly this, and you don't need to call it, the for language construction does it for you.
[https://code.haxe.org/category/abstract-types/using-iterators-as-generic-type-parameters.html](https://code.haxe.org/category/abstract-types/using-iterators-as-generic-type-parameters.html)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.