convx

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package convx has generic helpers for converting slices, ported from taply's conv package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapSlice

func MapSlice[From, To any](mapFunc func(From) To, from []From) []To

MapSlice converts a slice with mapFunc; a nil slice stays nil.

func MapSliceWithError

func MapSliceWithError[From, To any](mapFunc func(From) (To, error), from []From) ([]To, error)

MapSliceWithError converts a slice with mapFunc and stops at the first error; a nil slice stays nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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