Page 1 of 1

Problem 1) Write a Scheme function that takes two atoms and a list as parameters and returns a list identical to the par

Posted: Fri May 20, 2022 6:44 pm
by answerhappygod
Problem 1)
Write a Scheme function that takes two atoms and a list as
parameters and returns a list identical to the parameter list
except all top-level instances of the first given atom in the list
are replaced with the second given atom. Please include checks on
your input.
Please explain what your code does and why you believe it
works. Finally submit screen shots from the execution of the code.
It is enough to execute your functions on an online Scheme
interpreter.