// Find returns the first element that passes the test implemented by the provided function.
// Returns nil if not found.
Find returns the first element that passes the test implemented by the provided function.
Returns nil if not found.
// Find returns the first element that passes the test implemented by the provided function . // Returns nil if not found .
func Find(s []int64, f func(int64) bool) *int64 {
	for _, e := range s {
		if f(e) {
			return &e
		}
	}
	return nil
}
func Find ( s [ ] int64 , f func ( int64 ) bool ) * int64 { for _ , e := range s { if f ( e ) { return & e } } return nil }
Find returns the first element that passes the test implemented by the provided function.
Find returns the first element that passes the test implemented by the provided function .