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