package
Version:
v0.0.19
Opens a new window with list of versions in this module.
Published: Nov 15, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package split provides utils for splitting slices
-
func AndReduce[TS ~[]T, T, F, S any](elements TS, firstConverter func(T) F, secondConverter func(T) S, ...) (F, S)
-
func Of[TS ~[]T, T, F, S any](elements TS, firstConverter func(T) F, secondConverter func(T) S) ([]F, []S)
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[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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.