Determines which array ends to consider.
namespace SequenceEnding { enum Type { Both, Begin, End }; }