convert

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package convert provides converation helpers for collection implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndConvert

func AndConvert[From, To, Too any, I c.Iterable[From]](elements I, firsConverter func(From) To, secondConverter func(To) Too) stream.Iter[Too]

AndConvert - convert.AndConvert makes double converts From->Intermediate->To of the elements

func AndFilter

func AndFilter[From, To any, I c.Iterable[From]](elements I, converter func(From) To, filter func(To) bool) stream.Iter[To]

AndFilter - convert.AndFilter converts only filtered elements and returns them

func NotNil

func NotNil[From, To any, I c.Iterable[*From]](elements I, converter func(*From) To) stream.Iter[To]

NotNil - convert.NotNil converts only not nil elements and returns them

Types

This section is empty.

Jump to

Keyboard shortcuts

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