op

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T any](d *ds.Dataset, col string, filter FilterFunc[T])

func Group

func Group[T Number](d *ds.Dataset, gByCol []string, gDataCol string, reducer ReduceFunc[T])

func Map

func Map[T any](ds *ds.Dataset, col string, mapper MapFunc[T])

func Reduce

func Reduce[T Number](ds ds.Dataset, col string, acc T, reducer ReduceFunc[T]) T

Types

type FilterFunc

type FilterFunc[T any] func(a T) bool

type MapFunc

type MapFunc[T any] func(a T) T

type Mapper

type Mapper[T any] interface {
	// contains filtered or unexported methods
}

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

type ReduceFunc

type ReduceFunc[T Number] func(*T, T)

type Reducer

type Reducer[T Number] interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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