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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply