slices/reduce_test.go
2023-03-09 14:34:44 +01:00

12 lines
139 B
Go

package slices
import (
"fmt"
"testing"
)
func TestReduce(t *testing.T) {
s := Of(1, 2, 3)
fmt.Println(Reduce(s, SumReducer[int]))
}