// The Reduce() method executes a reducer function (that you provide) on element
// of the array, resulting in reduced Str output.
The Reduce() method executes a reducer function (that you provide) on element
of the array, resulting in reduced Str output.
// The Reduce () method executes a reducer function ( that you provide ) on element // of the array resulting in reduced Str output .
func (S Str) Reduce(reducer func(acc Str, curr string) Str) (r Str) {
	for _, v := range S {
		r = reducer(r, v)
	}
	return r
}
func ( S Str ) Reduce ( reducer func ( acc Str , curr string ) Str ) ( r Str ) { for _ , v := range S { r = reducer ( r , v ) } return r }
The Reduce() method executes a reducer function (that you provide) on element
of the array, resulting in reduced Str output.
The Reduce () method executes a reducer function ( that you provide ) on element of the array resulting in reduced Str output .