iter

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package iter provides functions for common array iteration strategies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

func Forward(l int) (begin, end int, next func(int) int)

Forward returns limits and next function for forward iteration.

func Reversed

func Reversed(l int) (begin, end int, next func(int) int)

Reversed returns limits and next function for reverse iteration.

Types

type Fn

type Fn func(len int) (begin, end int, next func(int) int)

Fn type for range based iterators.

Jump to

Keyboard shortcuts

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