Generalizing either.or

I generalized either.or, so it should work now. I recommend testing the
function (I have a thing for it at the bottom) just to show what it
returns at the end. Please let me know if you have questions.