examples

package
v0.0.0-...-fcabd68 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFloat64ChanToFloat64 = errors.New("cannot convert Float64ChanMapResult to chan float64")
View Source
var ErrFloat64ChanToInt = errors.New("cannot convert Float64ChanMapResult to chan int")
View Source
var ErrFloat64ToFloat64 = errors.New("cannot convert Float64IterMapResult to []float64")
View Source
var ErrFloat64ToInt = errors.New("cannot convert Float64IterMapResult to []int")

Functions

This section is empty.

Types

type Float64ChanIter

type Float64ChanIter chan float64

func (Float64ChanIter) Array

func (i Float64ChanIter) Array(done chan struct{}) []float64

func (Float64ChanIter) Concat

func (Float64ChanIter) Filter

func (i Float64ChanIter) Filter(fn func(float64) bool) Float64ChanIter

func (Float64ChanIter) ForEach

func (i Float64ChanIter) ForEach(fn func(int, float64))

func (Float64ChanIter) Map

func (i Float64ChanIter) Map(fn func(int, float64) interface{}) Float64ChanMapResult

func (Float64ChanIter) ReduceInt

func (i Float64ChanIter) ReduceInt(fn func(current float64, acc int, index int) int, initial int) chan int

type Float64ChanMapResult

type Float64ChanMapResult <-chan interface{}

func (Float64ChanMapResult) Iter

func (r Float64ChanMapResult) Iter() (Float64ChanIter, chan error)

func (Float64ChanMapResult) ToInt

func (r Float64ChanMapResult) ToInt() (chan int, chan error)

type Float64Iter

type Float64Iter []float64

func NewFloat64Iter

func NewFloat64Iter(items ...float64) Float64Iter

func (Float64Iter) All

func (i Float64Iter) All(fn func(float64) bool) bool

func (Float64Iter) Concat

func (i Float64Iter) Concat(i2 Float64Iter) Float64Iter

func (Float64Iter) Filter

func (i Float64Iter) Filter(fn func(float64) bool) Float64Iter

func (Float64Iter) Find

func (i Float64Iter) Find(fn func(float64) bool) (float64, int)

func (Float64Iter) ForEach

func (i Float64Iter) ForEach(fn func(int, float64))

func (Float64Iter) Map

func (i Float64Iter) Map(fn func(int, float64) interface{}) Float64IterMapResult

func (Float64Iter) ReduceInt

func (i Float64Iter) ReduceInt(fn func(current float64, acc int, index int) int, initial int) int

func (Float64Iter) Reverse

func (i Float64Iter) Reverse() Float64Iter

func (Float64Iter) Some

func (i Float64Iter) Some(fn func(float64) bool) bool

func (Float64Iter) Splice

func (i Float64Iter) Splice(start, numDelete int) Float64Iter

Splice removes numDelete items from the slice since start. If numDelete is -1 it will delete all items after start. If start is higher than the slice length or lower than 0 the whole slice will be returned.

type Float64IterMapResult

type Float64IterMapResult []interface{}

func (Float64IterMapResult) Iter

func (Float64IterMapResult) ToInt

func (r Float64IterMapResult) ToInt() ([]int, error)

Jump to

Keyboard shortcuts

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