// Map creates a new slice with the results of calling the provided function on every element in the given array.
Map creates a new slice with the results of calling the provided function on every element in the given array.
// Map creates a new slice with the results of calling the provided function on every element in the given array .
func Map(s []int64, f func(s int64) int64) Int64s {
	m := Int64s(make([]int64, len(s)))
	for i, v := range s {
		m[i] = f(v)
	}
	return m
}
func Map ( s [ ] int64 , f func ( s int64 ) int64 ) Int64s { m := Int64s ( make ( [ ] int64 , len ( s ) ) ) for i , v := range s { m [ i ] = f ( v ) } return m }
Map creates a new slice with the results of calling the provided function on every element in the given array.
Map creates a new slice with the results of calling the provided function on every element in the given array .