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.
Click to show internal directories.
Click to hide internal directories.