// BytesIntsE 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.
BytesIntsE 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.
// BytesIntsE 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 BytesIntsE(s []byte, f func(s byte) (int, error)) (ints.Ints, error) {
	m := ints.Ints(make([]int, 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 BytesIntsE ( s [ ] byte , f func ( s byte ) ( int , error ) ) ( ints . Ints , error ) { m := ints . Ints ( make ( [ ] int , len ( s ) ) ) var err error for i , v := range s { m [ i ] , err = f ( v ) if err != nil { return nil , err } } return m , nil }
BytesIntsE creates a new slice with the results of calling the provided function on every element in the given array.
BytesIntsE creates a new slice with the results of calling the provided function on every element in the given array .