fp

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 0 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(f func(any, int) bool, input []any) (output bool)

All return true if all values are matched

func AllByte

func AllByte(f func(byte, int) bool, input []byte) (output bool)

AllByte return true if all values are matched

func AllFloat32

func AllFloat32(f func(float32, int) bool, input []float32) (output bool)

AllFloat32 return true if all values are matched

func AllFloat64

func AllFloat64(f func(float64, int) bool, input []float64) (output bool)

AllFloat64 return true if all values are matched

func AllInt

func AllInt(f func(int, int) bool, input []int) (output bool)

AllInt return true if all values are matched

func AllInt16

func AllInt16(f func(int16, int) bool, input []int16) (output bool)

AllInt16 return true if all values are matched

func AllInt32

func AllInt32(f func(int32, int) bool, input []int32) (output bool)

AllInt32 return true if all values are matched

func AllInt64

func AllInt64(f func(int64, int) bool, input []int64) (output bool)

AllInt64 return true if all values are matched

func AllInt8

func AllInt8(f func(int8, int) bool, input []int8) (output bool)

AllInt8 return true if all values are matched

func AllString

func AllString(f func(string, int) bool, input []string) (output bool)

AllString return true if all values are matched

func AllUint16

func AllUint16(f func(uint16, int) bool, input []uint16) (output bool)

AllUint16 return true if all values are matched

func AllUint32

func AllUint32(f func(uint32, int) bool, input []uint32) (output bool)

AllUint32 return true if all values are matched

func AllUint64

func AllUint64(f func(uint64, int) bool, input []uint64) (output bool)

AllUint64 return true if all values are matched

func AllUint8

func AllUint8(f func(uint8, int) bool, input []uint8) (output bool)

AllUint8 return true if all values are matched

func Any

func Any(f func(any, int) bool, input []any) (output bool)

Any return true if any of values is matched

func AnyByte

func AnyByte(f func(byte, int) bool, input []byte) (output bool)

AnyByte return true if any of values is matched

func AnyFloat32

func AnyFloat32(f func(float32, int) bool, input []float32) (output bool)

AnyFloat32 return true if any of values is matched

func AnyFloat64

func AnyFloat64(f func(float64, int) bool, input []float64) (output bool)

AnyFloat64 return true if any of values is matched

func AnyInt

func AnyInt(f func(int, int) bool, input []int) (output bool)

AnyInt return true if any of values is matched

func AnyInt16

func AnyInt16(f func(int16, int) bool, input []int16) (output bool)

AnyInt16 return true if any of values is matched

func AnyInt32

func AnyInt32(f func(int32, int) bool, input []int32) (output bool)

AnyInt32 return true if any of values is matched

func AnyInt64

func AnyInt64(f func(int64, int) bool, input []int64) (output bool)

AnyInt64 return true if any of values is matched

func AnyInt8

func AnyInt8(f func(int8, int) bool, input []int8) (output bool)

AnyInt8 return true if any of values is matched

func AnyString

func AnyString(f func(string, int) bool, input []string) (output bool)

AnyString return true if any of values is matched

func AnyUint16

func AnyUint16(f func(uint16, int) bool, input []uint16) (output bool)

AnyUint16 return true if any of values is matched

func AnyUint32

func AnyUint32(f func(uint32, int) bool, input []uint32) (output bool)

AnyUint32 return true if any of values is matched

func AnyUint64

func AnyUint64(f func(uint64, int) bool, input []uint64) (output bool)

AnyUint64 return true if any of values is matched

func AnyUint8

func AnyUint8(f func(uint8, int) bool, input []uint8) (output bool)

AnyUint8 return true if any of values is matched

func Filter

func Filter(f func(any, int) bool, input []any) (output []any)

Filter return the values which are matched

func FilterByte

func FilterByte(f func(byte, int) bool, input []byte) (output []byte)

FilterByte return the values which are matched

func FilterFloat32

func FilterFloat32(f func(float32, int) bool, input []float32) (output []float32)

FilterFloat32 return the values which are matched

func FilterFloat64

func FilterFloat64(f func(float64, int) bool, input []float64) (output []float64)

FilterFloat64 return the values which are matched

func FilterInt

func FilterInt(f func(int, int) bool, input []int) (output []int)

FilterInt return the values which are matched

func FilterInt16

func FilterInt16(f func(int16, int) bool, input []int16) (output []int16)

FilterInt16 return the values which are matched

func FilterInt32

func FilterInt32(f func(int32, int) bool, input []int32) (output []int32)

FilterInt32 return the values which are matched

func FilterInt64

func FilterInt64(f func(int64, int) bool, input []int64) (output []int64)

FilterInt64 return the values which are matched

func FilterInt8

func FilterInt8(f func(int8, int) bool, input []int8) (output []int8)

FilterInt8 return the values which are matched

func FilterString

func FilterString(f func(string, int) bool, input []string) (output []string)

FilterString return the values which are matched

func FilterUint16

func FilterUint16(f func(uint16, int) bool, input []uint16) (output []uint16)

FilterUint16 return the values which are matched

func FilterUint32

func FilterUint32(f func(uint32, int) bool, input []uint32) (output []uint32)

FilterUint32 return the values which are matched

func FilterUint64

func FilterUint64(f func(uint64, int) bool, input []uint64) (output []uint64)

FilterUint64 return the values which are matched

func FilterUint8

func FilterUint8(f func(uint8, int) bool, input []uint8) (output []uint8)

FilterUint8 return the values which are matched

func Map

func Map(f func(any, int) any, input []any) (output []any)

Map make a map from the current slice to a new slice using the function

func MapByte

func MapByte(f func(byte, int) byte, input []byte) (output []byte)

MapByte make a map from the current slice to a new slice using the function

func MapFloat32

func MapFloat32(f func(float32, int) float32, input []float32) (output []float32)

MapFloat32 make a map from the current slice to a new slice using the function

func MapFloat64

func MapFloat64(f func(float64, int) float64, input []float64) (output []float64)

MapFloat64 make a map from the current slice to a new slice using the function

func MapInt

func MapInt(f func(int, int) int, input []int) (output []int)

MapInt make a map from the current slice to a new slice using the function

func MapInt16

func MapInt16(f func(int16, int) int16, input []int16) (output []int16)

MapInt16 make a map from the current slice to a new slice using the function

func MapInt32

func MapInt32(f func(int32, int) int32, input []int32) (output []int32)

MapInt32 make a map from the current slice to a new slice using the function

func MapInt64

func MapInt64(f func(int64, int) int64, input []int64) (output []int64)

MapInt64 make a map from the current slice to a new slice using the function

func MapInt8

func MapInt8(f func(int8, int) int8, input []int8) (output []int8)

MapInt8 make a map from the current slice to a new slice using the function

func MapString

func MapString(f func(string, int) string, input []string) (output []string)

MapString make a map from the current slice to a new slice using the function

func MapUint16

func MapUint16(f func(uint16, int) uint16, input []uint16) (output []uint16)

MapUint16 make a map from the current slice to a new slice using the function

func MapUint32

func MapUint32(f func(uint32, int) uint32, input []uint32) (output []uint32)

MapUint32 make a map from the current slice to a new slice using the function

func MapUint64

func MapUint64(f func(uint64, int) uint64, input []uint64) (output []uint64)

MapUint64 make a map from the current slice to a new slice using the function

func MapUint8

func MapUint8(f func(uint8, int) uint8, input []uint8) (output []uint8)

MapUint8 make a map from the current slice to a new slice using the function

func Reduce

func Reduce(f func(any, any, int) any, input []any) (output any)

Reduce accumulate all values

func ReduceByte

func ReduceByte(f func(byte, byte, int) byte, input []byte) (output byte)

ReduceByte accumulate all values

func ReduceFloat32

func ReduceFloat32(f func(float32, float32, int) float32, input []float32) (output float32)

ReduceFloat32 accumulate all values

func ReduceFloat64

func ReduceFloat64(f func(float64, float64, int) float64, input []float64) (output float64)

ReduceFloat64 accumulate all values

func ReduceInt

func ReduceInt(f func(int, int, int) int, input []int) (output int)

ReduceInt accumulate all values

func ReduceInt16

func ReduceInt16(f func(int16, int16, int) int16, input []int16) (output int16)

ReduceInt16 accumulate all values

func ReduceInt32

func ReduceInt32(f func(int32, int32, int) int32, input []int32) (output int32)

ReduceInt32 accumulate all values

func ReduceInt64

func ReduceInt64(f func(int64, int64, int) int64, input []int64) (output int64)

ReduceInt64 accumulate all values

func ReduceInt8

func ReduceInt8(f func(int8, int8, int) int8, input []int8) (output int8)

ReduceInt8 accumulate all values

func ReduceString

func ReduceString(f func(string, string, int) string, input []string) (output string)

ReduceString accumulate all values

func ReduceUint16

func ReduceUint16(f func(uint16, uint16, int) uint16, input []uint16) (output uint16)

ReduceUint16 accumulate all values

func ReduceUint32

func ReduceUint32(f func(uint32, uint32, int) uint32, input []uint32) (output uint32)

ReduceUint32 accumulate all values

func ReduceUint64

func ReduceUint64(f func(uint64, uint64, int) uint64, input []uint64) (output uint64)

ReduceUint64 accumulate all values

func ReduceUint8

func ReduceUint8(f func(uint8, uint8, int) uint8, input []uint8) (output uint8)

ReduceUint8 accumulate all values

Types

This section is empty.

Jump to

Keyboard shortcuts

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