package main import ( "fmt" "github.com/wesovilabs/koazee" ) var stream = koazee.StreamOf([]int{1, 2, 3, 4, 5}) func main() { out := stream.Reduce(func(acc, val int) int { return acc + val }) fmt.Println(out.Int()) }