// Filter creates a new slice with all elements that pass the test implemented by the provided function.
Filter creates a new slice with all elements that pass the test implemented by the provided function.
// Filter creates a new slice with all elements that pass the test implemented by the provided function .
func Filter(s []int64, f func(s int64) bool) Int64s {
	m := Int64s(make([]int64, 0, len(s)))
	for _, v := range s {
		if f(v) {
			m = append(m, v)
		}
	}
	return m
}
func Filter ( s [ ] int64 , f func ( s int64 ) bool ) Int64s { m := Int64s ( make ( [ ] int64 , 0 , len ( s ) ) ) for _ , v := range s { if f ( v ) { m = append ( m , v ) } } return m }
Filter creates a new slice with all elements that pass the test implemented by the provided function.
Filter creates a new slice with all elements that pass the test implemented by the provided function .