slices/reduce_test.go

12 lines
139 B
Go
Raw Permalink Normal View History

2023-03-09 14:34:44 +01:00
package slices
import (
"fmt"
"testing"
)
func TestReduce(t *testing.T) {
s := Of(1, 2, 3)
fmt.Println(Reduce(s, SumReducer[int]))
}