Write a function called mymember?  Which will take an object x and a list y, and return #t (true) If x is an element of y and #f (false) otherwise.  Note that y may be a nested list, but x is only a member of y if x is one of the top-level elements.  One can use the built in equal. Code in Racket.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question
Write a function called mymember? 
Which will take an object x and a list y, and return #t (true)
If x is an element of y and #f (false) otherwise. 
Note that y may be a nested list, but x is only a member of y if x is one of the top-level elements. 
One can use the built in equal.
Code in Racket.
 
I really appreciate it thank you so much. I have been so stuck on this question for so long
 
 
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Linked List Representation
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT