As I go through the problems on problems.tryapl.org, there are often certain edge cases we have to satisfy, where we're passed an empty vector or perhaps a vector containing only 1 element in a problem where we're considering adjacent pairs of elements.
Is the normal approach to satisfy these edge cases with guards, or is there some other approach that is eluding me?