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
{{ message }}
Repository navigation
Reduce must return an interface to support multiple type #50
Hi I would like to use Reduce function but it seems that output result must be always float64, so no Map or Array or whatever else is supported? I am completely new to Go maybe I am missing something. Thank you for your help.
Activity
thoas commentedon Nov 8, 2018
You are right, it seems the
Reducehas been done only for integer at the moment feel free to send a patch to support others operations.[-]Reduce must return float64 ?[/-][+]Reduce must return an interface to support multiple type[/+]reetuparna commentedon Jul 31, 2020
Taking this up @thoas
thoas#50 Change `funk.Reduce` return type to `interface{}`
thoas#50 Fix tests
thoas#50 Update README
Merge pull request #116 from vellotis/#50