Write a program using DrRacket:
is a member of a list.
(Can you explain everything) code must be designed from the scratches no library functions
(member 1 '(2 3 4 1 5)) => true
(member 1 '(2 3 4 (1) 5)) => false
#lang racket
(define (member l lis)
(if (for/or ([i lis])
(equal? i l)) (display "true") (display
"false"))
)
(member 1 '(1,2,3,4,5))
If you have any doubts please comment and please don't dislike.
Get Answers For Free
Most questions answered within 1 hours.