Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶
func Map(xs, f interface{}) interface{}
Example ¶
lens := Map([]string{"hi", "hoe", "silver-lining"}, func(str string) int { return len(str) }).([]int) fmt.Println(lens)
Output: [2 3 13]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.