array(int) Array.longest_ordered_sequence(array a)
Find the longest ordered sequence of elements.
This function returns an array of the indices in the longest ordered sequence of elements in the array.
Array.diff
Extracted from Pike v7.3 release 11 at 2001-11-03.