Documentation ¶ Index ¶ func Search(n int, f func(i int) bool) int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Search ¶ func Search(n int, f func(i int) bool) int Search calls the provided function with increasing input from [0,n) and returns the input i if the provided function returns true, can be used to find the first occurence in an array that satisfies a given predicate. Types ¶ This section is empty. Source Files ¶ View all Source files search.go Click to show internal directories. Click to hide internal directories.