iterutil

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array = []Item

func Filter

func Filter(arr Array, predicate func(value Item) bool) Array

func Map

func Map(arr Array, mapper func(value Item) Item) Array

type Item

type Item = interface{}

func Reduce

func Reduce(arr Array, initialValue Item, f func(total, currentValue Item, currentIndex int) Item) Item

Jump to

Keyboard shortcuts

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