Welcome to Westonci.ca, the place where your questions are answered by a community of knowledgeable contributors. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

If Scheme were a pure functional language, could it include DISPLAY ? Why or why not?​

Sagot :

Answer:

When Scheme is a pure functional language, it cannot include the function DISPLAY. Since the pure functional languages will return the same value whenever the same expression is evaluated, and the DISPLAY would be the output and thus it cannot be part of the purely functional language. Thus in the pure functional language we can evaluate the expressions with the same arguments and it returns the same value since there is no state to change.

Explanation: