iterator

package
v0.20.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Internal package with a copy of the iterator from the main code used in internal packages and tests. The copy is created to resolve import cycling of packages and to prevent false test coverage (without checking the results) of iterator from main code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iter

func Iter[Type constraints.Integer](begin, end Type) iter.Seq[Type]

A range iterator for safely (without infinite loops due to counter overflow) iterating over integer values from begin to end inclusive with a step one.

If begin is greater than end, the return value will be decremented, otherwise it will be incremented.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL