// IntsUint16sF creates a new slice with the results of calling the provided function on every element in the given array.
// If the given function returns an error, the element will be ignored.
IntsUint16sF creates a new slice with the results of calling the provided function on every element in the given array.
If the given function returns an error, the element will be ignored.
// IntsUint16sF creates a new slice with the results of calling the provided function on every element in the given array . // If the given function returns an error the element will be ignored .
func IntsUint16sF(s []int, f func(s int) (uint16, error)) uint16s.Uint16s {
	m := uint16s.Uint16s(make([]uint16, 0, len(s)))
	var (
		x   uint16
		err error
	)
	for _, v := range s {
		x, err = f(v)
		if err != nil {
			continue
		}
		m = append(m, x)
	}
	return m
}
func IntsUint16sF ( s [ ] int , f func ( s int ) ( uint16 , error ) ) uint16s . Uint16s { m := uint16s . Uint16s ( make ( [ ] uint16 , 0 , len ( s ) ) ) var ( x uint16 err error ) for _ , v := range s { x , err = f ( v ) if err != nil { continue } m = append ( m , x ) } return m }
IntsUint16sF creates a new slice with the results of calling the provided function on every element in the given array.
IntsUint16sF creates a new slice with the results of calling the provided function on every element in the given array .