iter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendTo

func AppendTo[T any](vs []T, iter tl.Iter[T]) []T

func Filter

func Filter[T any](inner tl.Iter[T], fn tl.CompareFunc[T]) tl.Iter[T]

func Flatten

func Flatten[T any](inner tl.Iter[[]T]) tl.Iter[T]

func Get

func Get[T any](iter tl.Iter[T]) T

func Index

func Index[T any](iter tl.Iter[T], cmpFn tl.CompareFunc[T]) int

func Map

func Map[T, V any](inner tl.Iter[T], conv func(T) V) tl.Iter[V]

func Nth

func Nth[T any](inner tl.Iter[T], nth int) tl.Iter[T]

func Range

func Range[T constraints.Integer](start, stop, step T) tl.Iter[T]
func Search[T any](iter tl.Iter[T], cmpFn tl.CompareFunc[T]) tl.Iter[T]

func Slice

func Slice[T any](vs []T) tl.Iter[T]

func Sum

func Sum[T constraints.Integer | constraints.Float](inner tl.Iter[T]) tl.Iter[T]

func ToSlice

func ToSlice[T any](iter tl.Iter[T]) []T

func Unique

func Unique[T comparable](inner tl.Iter[T]) tl.Iter[T]

func UniqueFn

func UniqueFn[T any](inner tl.Iter[T], eq func(a, b T) bool) tl.Iter[T]

func Window

func Window[T any](inner tl.Iter[T], n int) tl.Iter[[]T]

func WindowCopy

func WindowCopy[T any](inner tl.Iter[T], n int) tl.Iter[[]T]

func WindowSlice

func WindowSlice[T any](vs []T, n int) tl.Iter[[]T]

Types

This section is empty.

Jump to

Keyboard shortcuts

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