Question: In scheme/ racket, write a function (seen x) that takes a single argument x and return #t if it has been previously called with the
In scheme/ racket, write a function (seen x) that takes a single argument x and return #t if it has been previously called with the same argument and #f otherwise.
Hint: You may use a global variable if you like, but a solution that does not use global state is possible.
Example: (begin (seen 5) (seen 5)) will return #t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
