At the heart of functional thinking is to ask about the meaning of things. In the case of functions, it’s reasoning about their return…