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.

sub-index

Find an array index of the substitute value that should be chosen when a given index is deleted