Home Manual Reference Source

src/iter.js

export default function* iter(matching) {
	let i = 0;
	for (const j of matching) {
		// This takes care of j === -1
		if (i < j) yield [i, j];
		++i;
	}
}