Problem 2) 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
Problem 2)
Write a Scheme function that takes two atoms and a list as
parameters and returns a list identical to the parameter list
except all occurrences of the first given atom in the list are
replaced with the second given atom, no matter how deeply the first
atom is nested.
Please explaining 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.
Write a Scheme function that takes two atoms and a list as
parameters and returns a list identical to the parameter list
except all occurrences of the first given atom in the list are
replaced with the second given atom, no matter how deeply the first
atom is nested.
Please explaining 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.