You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type test struct {
name string
}
func test33(names []string, test test ) string{
stream := koazee.StreamOf(names).
Reduce(func(acc string, name string) (string, error) {
log.Info( test.name)
return acc, nil
})
return stream.Val().(string)
}
func main() {
test1 := test{
name:"name1",
}
test2 := test{
name:"name2",
}
array := []string{"33","44"}
test33(array,test1)
test33(array,test2)
}
output :-
name1
name1
name1
name1
Expected :-
name1
name1
name2
name2
The text was updated successfully, but these errors were encountered:
dekanayake
changed the title
koazee reduce wont accept the subsequent function param values
koazee reduce wont accept the subsequent function param values or state outside the reduce function
Sep 1, 2020
Ex :
output :-
name1
name1
name1
name1
Expected :-
name1
name1
name2
name2
The text was updated successfully, but these errors were encountered: