Documentation
¶
Overview ¶
Package slices provides early implementations of slice-related functions available in Go 1.23+.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collect ¶
Collect collects values from seq into a new slice and returns it.
Example ¶
package main
import (
"fmt"
"github.com/BooleanCat/go-functional/v2/future/slices"
)
func main() {
fmt.Println(slices.Collect(slices.Values([]int{1, 2, 3})))
}
Output: [1 2 3]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.