Equal amp39this is a list amp39this is a list is false to


Two lists are said to be equal? if they contain equal elements arranged in the same order. For example,

(equal? '(this is a list) '(this is a list))

(equal? '(this is a list) '(this (is a) list)) is false. To be more precise, we can define equal? recursively in terms of the basic eq? equality of symbols by saying that a and b are equal? if they are both symbols and the symbols are eq?, or if they are both lists such that (car a) is equal? to (car b) and (cdr a) is equal? to (cdr b). Using this idea, implement equal? as a procedure.36

Request for Solution File

Ask an Expert for Answer!!
Basic Statistics: Equal amp39this is a list amp39this is a list is false to
Reference No:- TGS01387967

Expected delivery within 24 Hours