Take the 2-minute tour ×
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It's 100% free, no registration required.

I'm looking for an umbrella term for "next" and "previous" so that I don't have to call my programming methods "NextPrevious".

Is there a hypernym for the two?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

How about adjacent:

Next to or adjoining something else

Other options you could incorporate into your method name include near, neighbor, and one over.

share|improve this answer
    
+1 I like it! Thanks –  Curt Oct 17 '12 at 15:15
add comment

If you are iterating some list-like recursive structure, same level entities can be called siblings. For example, in tree children sharing the same parent are called siblings.

But sibling include also the node, compare to which one other nodes can are next or previous.

If next and previous are something about, say, navigation buttons, better stay with those words.

share|improve this answer
1  
This is for paging, but I don't think sibling would be appropriate. For example if I was on Page 5, I'm referring to Page 4 and 6. Whereas sibling would refer to all pages –  Curt Oct 17 '12 at 15:13
    
Good points. If the OP offers more details about what his method does, perhaps we could give a more apt name. However, the question is ultimately about the hypernym for the terms. Sibling, like neighbor in my answer, sort of works (in a programming context). –  Zairja Oct 17 '12 at 15:15
    
@Curt, oh, I see, I've thought you are searching an umbrella term in a more general sense ) –  shabunc Oct 17 '12 at 15:16
    
@Zairja, neighbour is a better choice, so I've upvoted your answer) –  shabunc Oct 17 '12 at 15:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.