Back to Fpinscala

08.Hint

answerkey/monoids/08.hint.md

latest284 B
Original Source

Think about what a partial answer looks like. If we've only seen some of the elements of a sequence, we need to know if what we have seen so far is ordered. For every new element we see, if the sequence is in fact ordered, it should not fall inside the range of elements seen already.