filter

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package filter provides aliases for slice filtering helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndConvert

func AndConvert[FS ~[]From, From, To any](elements FS, filter func(From) bool, converter func(From) To) []To

AndConvert filters the 'From' elements, and then converts them to 'To'

func ConvertFilter

func ConvertFilter[FS ~[]From, From, To any](elements FS, filter func(From) bool, converter func(From) To, filterTo func(To) bool) []To

ConvertFilter filters the 'From' elements, then converts them to 'To', and then filters that ones

Types

This section is empty.

Jump to

Keyboard shortcuts

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