superlo

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 2 Imported by: 0

README

superlo

wrapped samber/lo

Documentation

Overview

Package superlo is an extension of samber/lo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map[T any, R any](collection []T, iteratee func(item T, index int) (R, error)) ([]R, error)

Map - returns a new collection of mapped values and error

func ParallelMap added in v0.2.0

func ParallelMap[T any, R any](collection []T, iteratee func(item T, index int) (R, error)) ([]R, error)

ParallelMap - returns a new collection of mapped values and error `iteratee` is call in parallel. Result keep the same order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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