Find in a Table Using Binary Search

idx, found = util.find(t, v, [func])

Use binary search to locate in a table.

Parameter Type Description
t table Table to search
v string/number/etc Value to search for
func function Comparison function
Returns Type Description
idx integer Index (the insertion point)
found boolean Whether a match found in the table