mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
7e3b32fff8
Approved by: portmgr Approved by: bapt (mentor)
7 lines
394 B
Plaintext
7 lines
394 B
Plaintext
Binary_search implements a generic binary search algorithm returning the
|
|
position of the first record whose index value is greater than or equal
|
|
to $val. The search routine does not define any of the terms position,
|
|
record or index value, but leaves their interpretation and
|
|
implementation to the user supplied function &$read(). The only
|
|
restriction is that positions must be integer scalars.
|