package
module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Nov 27, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
superlo
wrapped samber/lo
Documentation
¶
Package superlo is an extension of samber/lo
-
func Map[T any, R any](collection []T, iteratee func(item T, index int) (R, error)) ([]R, error)
-
func ParallelMap[T any, R any](collection []T, iteratee func(item T, index int) (R, error)) ([]R, error)
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[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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.