mem

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 2 Imported by: 0

README

mem

test Go Reference

In-memory data processing functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup added in v0.2.0

func Lookup[K comparable, V1, V2 any](a iter.Seq2[K, V1], b iter.Seq2[K, V2]) iter.Seq2[K, Tuple[V1, V2]]

Lookup performs left outer join of a and b sequences using hash algorithm. Output order of the a sequence is preserved.

func Merge

func Merge[K cmp.Ordered, V any](a, b iter.Seq2[K, V], cs ...iter.Seq2[K, V]) iter.Seq2[K, V]

Merge combines non-decreasing sequences into one. Will panic when some of sequences are not ordered.

func Project added in v0.3.0

func Project[K, V, Ko, Vo any](a iter.Seq2[K, V], prj func(K, V) (Ko, Vo)) iter.Seq2[Ko, Vo]

Project performs users's projection of the a sequence.

Types

type Tuple added in v0.2.0

type Tuple[V1, V2 any] struct {
	L V1
	R []V2
}

Jump to

Keyboard shortcuts

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