iterators 1.2.1

A collection of useful iterators.

Released 2018-02-07.

To install, run:

haxelib install iterators 1.2.1

See using Haxelib in Haxelib documentation for more information.

MaintainerRealyUniqueName
Websitehttps://github.com/RealyUniqueName/Iterators
Current version1.2.1
StatisticsInstalled 6 times
LicenseMIT
Tags

README.md

Iterators Build Status

This is a set of frequently used iterators for Haxe collections and other types.

All iterators are designed to have zero impact on runtime performance.

Installation

haxelib install iterators

Usage

using Iterators;

for(i in 10.to(0).step(-2)) { //.step() is optional
	trace(i);
}

var map = ['hello' => 'world'];
for(p in map.pairs()) {
	trace(p.key);
	trace(p.value);
}

var str = 'hello';
for(c in str.chars()) {
	trace(c);
}

See Iterators.hx for all available extensions.