In a software program we have a function which asserts if the current date is a working day, and if it's not it retrieves the next working day.
Currently the function is called getNextWorkingDay(DATE)
When using the function in the following manner getNextWorkingDay(*saturday*) would return Monday (unless Monday is a holiday).
My problem with this name is, if you call this function with a working day as a parameter, it does not return the next day, but the given day. So a better name would be assertIfWorkingDayOrGetNextWorkingDay which is a bit on the long side.
Q: Is there a hypernym for "current or next" which I could use like this:
getHypernymWorkingDay
getAvailableWorkingDay. This question is so close to the off-topic line it's in grave danger of crossing it. You could call your functionMargaretand it would work just as well. Here's an example of an on-topic naming question – Andrew Leach Nov 28 '16 at 10:43