func MapInt(s []int, f func(int) int) []int {
	sm := make([]int, len(s))
	for i, v := range s {
		sm[i] = f(v)
	}
	return sm
}
MapInt a new slice containing the results of applying the function f to each int in the original slice.
package gosc
import (
	"fmt"
	"math/rand"
	"reflect"
	"sort"
	"strings"
	"time"
)
func MapString(s []string, f func(string) string) []string {
	sm := make([]string, len(s))
	for i, v := range s {
		sm[i] = f(v)
	}
	return sm
}