search

package
v0.0.0-...-5288846 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL