in reply to A proper name for is_sorted function that can check more than just sorting order?

Depends on the implementation.

As far as I understand you are testing the condition for all pairs ( a=set[i], b=set[i+1] )

That is you are testing all n-1 links / neighboring pairs, correct?

This should be reflected by the name

What about something like

?

Using the word "link" hints also to "linked lists" a data structure closely related to arrays.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

updates

Expanded list

  • Comment on Re: A proper name for is_sorted function that can check more than just sorting order?
  • Download Code