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: 1
Opens a new window with list of known importers.
Documentation
¶
Package first provides short aliases for slice functions for retrieving a first element
func Converted[FS ~[]From, From, To any](elements FS, filter func(From) bool, converter func(From) To) (out To, ok bool)
Converted converts the first element that satisfies the condition of the 'filter' function by the converter and returns it
func Of[TS ~[]T, T any](elements TS, filter func(T) bool) (T, bool)
Of returns the first element that satisfies requirements of the specified filter
Source Files
¶
Click to show internal directories.
Click to hide internal directories.