How to check whether a value is inside a range

Paul Hudson shows us just how powerful Swift’s ranges are, demonstrating how we can check whether a value is within a certain range. I was not aware that this also worked with Swift strings. Very useful.