find-index

finds an item in an array matching a predicate function, and returns its index

find-insert-index

Find the index to insert an element in array keeping the sort order.