split

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package split provides utils for splitting slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndReduce

func AndReduce[TS ~[]T, T, F, S any](elements TS, firstConverter func(T) F, secondConverter func(T) S, firstMerge func(F, F) F, secondMerger func(S, S) S) (F, S)

AndReduce - split.AndReduce splits each element of the specified slice into two values and then reduces that ones

func Of

func Of[TS ~[]T, T, F, S any](elements TS, firstConverter func(T) F, secondConverter func(T) S) ([]F, []S)

Of splits the elements into two slices

Types

This section is empty.

Jump to

Keyboard shortcuts

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