functional

package module
v0.0.0-...-2dbb074 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 0 Imported by: 0

README

go-functional

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterBool

func FilterBool(slice []bool, fn func(bool) bool) (ret []bool)

FilterBool ...

func FilterFloat32

func FilterFloat32(slice []float32, fn func(float32) bool) (ret []float32)

FilterFloat32 ...

func FilterFloat64

func FilterFloat64(slice []float64, fn func(float64) bool) (ret []float64)

FilterFloat64 ...

func FilterInt

func FilterInt(slice []int, fn func(int) bool) (ret []int)

FilterInt ...

func FilterInt16

func FilterInt16(slice []int16, fn func(int16) bool) (ret []int16)

FilterInt16 ...

func FilterInt32

func FilterInt32(slice []int32, fn func(int32) bool) (ret []int32)

FilterInt32 ...

func FilterInt64

func FilterInt64(slice []int64, fn func(int64) bool) (ret []int64)

FilterInt64 ...

func FilterInt8

func FilterInt8(slice []int8, fn func(int8) bool) (ret []int8)

FilterInt8 ...

func FilterString

func FilterString(slice []string, fn func(string) bool) (ret []string)

FilterString ...

func FilterUint

func FilterUint(slice []uint, fn func(uint) bool) (ret []uint)

FilterUint ...

func FilterUint16

func FilterUint16(slice []uint16, fn func(uint16) bool) (ret []uint16)

FilterUint16 ...

func FilterUint32

func FilterUint32(slice []uint32, fn func(uint32) bool) (ret []uint32)

FilterUint32 ...

func FilterUint64

func FilterUint64(slice []uint64, fn func(uint64) bool) (ret []uint64)

FilterUint64 ...

func FilterUint8

func FilterUint8(slice []uint8, fn func(uint8) bool) (ret []uint8)

FilterUint8 ...

func MapBool

func MapBool(slice []bool, fn func(bool) bool) (ret []bool)

MapBool ...

func MapFloat32

func MapFloat32(slice []float32, fn func(float32) float32) (ret []float32)

MapFloat32 ...

func MapFloat64

func MapFloat64(slice []float64, fn func(float64) float64) (ret []float64)

MapFloat64 ...

func MapInt

func MapInt(slice []int, fn func(int) int) (ret []int)

MapInt ...

func MapInt16

func MapInt16(slice []int16, fn func(int16) int16) (ret []int16)

MapInt16 ...

func MapInt32

func MapInt32(slice []int32, fn func(int32) int32) (ret []int32)

MapInt32 ...

func MapInt64

func MapInt64(slice []int64, fn func(int64) int64) (ret []int64)

MapInt64 ...

func MapInt8

func MapInt8(slice []int8, fn func(int8) int8) (ret []int8)

MapInt8 ...

func MapString

func MapString(slice []string, fn func(string) string) (ret []string)

MapString ...

func MapUint

func MapUint(slice []uint, fn func(uint) uint) (ret []uint)

MapUint ...

func MapUint16

func MapUint16(slice []uint16, fn func(uint16) uint16) (ret []uint16)

MapUint16 ...

func MapUint32

func MapUint32(slice []uint32, fn func(uint32) uint32) (ret []uint32)

MapUint32 ...

func MapUint64

func MapUint64(slice []uint64, fn func(uint64) uint64) (ret []uint64)

MapUint64 ...

func MapUint8

func MapUint8(slice []uint8, fn func(uint8) uint8) (ret []uint8)

MapUint8 ...

func ReduceBool

func ReduceBool(slice []bool, fn func(x bool, y bool) bool) (ret bool)

ReduceBool ...

func ReduceFloat32

func ReduceFloat32(slice []float32, fn func(x float32, y float32) float32) (ret float32)

ReduceFloat32 ...

func ReduceFloat64

func ReduceFloat64(slice []float64, fn func(x float64, y float64) float64) (ret float64)

ReduceFloat64 ...

func ReduceInt

func ReduceInt(slice []int, fn func(x int, y int) int) (ret int)

ReduceInt ...

func ReduceInt16

func ReduceInt16(slice []int16, fn func(x int16, y int16) int16) (ret int16)

ReduceInt16 ...

func ReduceInt32

func ReduceInt32(slice []int32, fn func(x int32, y int32) int32) (ret int32)

ReduceInt32 ...

func ReduceInt64

func ReduceInt64(slice []int64, fn func(x int64, y int64) int64) (ret int64)

ReduceInt64 ...

func ReduceInt8

func ReduceInt8(slice []int8, fn func(x int8, y int8) int8) (ret int8)

ReduceInt8 ...

func ReduceString

func ReduceString(slice []string, fn func(x string, y string) string) (ret string)

ReduceString ...

func ReduceUint

func ReduceUint(slice []uint, fn func(x uint, y uint) uint) (ret uint)

ReduceUint ...

func ReduceUint16

func ReduceUint16(slice []uint16, fn func(x uint16, y uint16) uint16) (ret uint16)

ReduceUint16 ...

func ReduceUint32

func ReduceUint32(slice []uint32, fn func(x uint32, y uint32) uint32) (ret uint32)

ReduceUint32 ...

func ReduceUint64

func ReduceUint64(slice []uint64, fn func(x uint64, y uint64) uint64) (ret uint64)

ReduceUint64 ...

func ReduceUint8

func ReduceUint8(slice []uint8, fn func(x uint8, y uint8) uint8) (ret uint8)

ReduceUint8 ...

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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