// Int64sUint8sE creates a new slice with the results of calling the provided function on every element in the given array.
// Returns an error if one of the function calls fails.
Int64sUint8sE creates a new slice with the results of calling the provided function on every element in the given array.
Returns an error if one of the function calls fails.
// Int64sUint8sE creates a new slice with the results of calling the provided function on every element in the given array . // Returns an error if one of the function calls fails .
func Int64sUint8sE(s []int64, f func(s int64) (uint8, error)) (uint8s.Uint8s, error) {
	m := uint8s.Uint8s(make([]uint8, len(s)))
	var err error
	for i, v := range s {
		m[i], err = f(v)
		if err != nil {
			return nil, err
		}
	}
	return m, nil
}
func Int64sUint8sE ( s [ ] int64 , f func ( s int64 ) ( uint8 , error ) ) ( uint8s . Uint8s , error ) { m := uint8s . Uint8s ( make ( [ ] uint8 , len ( s ) ) ) var err error for i , v := range s { m [ i ] , err = f ( v ) if err != nil { return nil , err } } return m , nil }
Int64sUint8sE creates a new slice with the results of calling the provided function on every element in the given array.
Int64sUint8sE creates a new slice with the results of calling the provided function on every element in the given array .