While looking at the closely related find and index functions, I realized that there was some missing functionality with has (and index) -- the ability to provide a checking function instead of an exact match on the value, letting you use your own logic to decide if the array or buffer has what you want.
While looking at the closely related
find
andindex
functions, I realized that there was some missing functionality withhas
(andindex
) -- the ability to provide a checking function instead of an exact match on the value, letting you use your own logic to decide if the array or buffer has what you want.