Documentation
¶
Overview ¶
Package slices provides generic higher-order functions over slices of values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlatMap ¶
FlatMap applies function "f : X => []Y" to each value of the input slice, and returns a new slice of each output in sequence. The output sequence is "flattened" so that each slice returned by f is concatenated into a single slice.
If the input slice is a nil slice, the return value is also a nil slice. If f returns a nil slice, it is not included in the output.
For a lazy version, see the iter package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.