iterator

package
v0.0.0-...-a59babc Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type interface{}

type TypeAccumulator

type TypeAccumulator interface{}

type TypeSlice

type TypeSlice []Type

TypeSlice is a slice of Type that foo.

func (TypeSlice) GroupBy

func (t TypeSlice) GroupBy(groupBy func(Type) string) map[string]TypeSlice

GroupBy returns a map of string keys to TypeSlice using the provided groupBy fn.

func (TypeSlice) Map

func (t TypeSlice) Map(fn func(Type) Type) TypeSlice

Map calls the provided func for each element in t and returns a new TypeSlice.

func (TypeSlice) Reduce

func (t TypeSlice) Reduce(accumulator func(TypeAccumulator, Type) TypeAccumulator, initial TypeAccumulator) TypeAccumulator

Jump to

Keyboard shortcuts

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