// The Map() method creates a new Str populated with the results of calling a provided
// function on every element in the calling array.
The Map() method creates a new Str populated with the results of calling a provided
function on every element in the calling array.
// The Map () method creates a new Str populated with the results of calling a provided // function on every element in the calling array .
func (S Str) Map(mapper func(s string) string) (r Str) {
	for _, v := range S {
		r = append(r, mapper(v))
	}
	return r
}
func ( S Str ) Map ( mapper func ( s string ) string ) ( r Str ) { for _ , v := range S { r = append ( r , mapper ( v ) ) } return r }
The Map() method creates a new Str populated with the results of calling a provided
function on every element in the calling array.
The Map () method creates a new Str populated with the results of calling a provided function on every element in the calling array .