Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Identity ¶
func Identity[V any](value V) V
Identity returns the provided value.
Example ¶
package main
import (
"fmt"
"github.com/BooleanCat/go-functional/v2/iter"
"github.com/BooleanCat/go-functional/v2/iter/op"
)
func main() {
for i := range iter.Lift([]int{1, 2, 3}).Transform(op.Identity) {
fmt.Println(i)
}
}
Output: 1 2 3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.