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