slicex

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Column added in v0.24.0

func Column[K, T any](slice []T, column func(item T) K) []K

Column get column from slice

func Join

func Join[LE, RE, R any](
	left []LE,
	right []RE,
	match func(lele LE, rele RE) bool,
	mapper func(lele LE, rele RE) R,
) []R

Join nested loop,no limit about condition

func JoinByKey

func JoinByKey[K comparable, LE, RE, R any](
	left []LE,
	right []RE,
	leftKey func(item LE) K,
	rightKey func(item RE) K,
	mapper func(lele LE, rele RE) R,
) []R

JoinByKey hash join, must be '=' condition

Types

This section is empty.

Jump to

Keyboard shortcuts

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