>> how about a predicate isSentinel instead of a fixed sentinel >> value? >> That'd allow more flexibility such as more than one sentinel >> value. > > Not usable in a switch/case statement. why is that needed?