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