Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶
Map applies a transformation function to each element of a slice and returns a new slice with the transformed values. This is a generic implementation of the map higher-order function.
Type Parameters:
- A: The type of elements in the input slice
- B: The type of elements in the output slice
Parameters:
- coll: The input slice to transform
- mapper: Function that transforms each element and receives the element's index
Returns:
- []B: A new slice containing the transformed elements
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.