func find(n int, f func(int) bool) (int, bool) {
	for i := 0; i < n; i++ {
		if f(i) {
			return i, true
		}
	}
	return -1, false
}
// find takes a slice and looks for an element in it. If found it will
// return it's key, otherwise it will return -1 and a bool of false.
find takes a slice and looks for an element in it. If found it will
return it's key, otherwise it will return -1 and a bool of false.
// find takes a slice and looks for an element in it . If found it will // return it ' s key otherwise it will return - 1 and a bool of false .
func find(n int, f func(int) bool) (int, bool) {
	for i := 0; i < n; i++ {
		if f(i) {
			return i, true
		}
	}
	return -1, false
}
func find ( n int , f func ( int ) bool ) ( int , bool ) { for i := 0 ; i < n ; i ++ { if f ( i ) { return i , true } } return - 1 , false }
find takes a slice and looks for an element in it.
find takes a slice and looks for an element in it .