public static bool IsHeap <T>( this ListIterator <T> first, ListIterator <T> last, Func <T, T, bool> comp ) { return(first.IsHeapUntil(last, comp).IsEqual(last)); }