Question: [RACKET CODING RECURSIVE] 3. Write a Racket function (set-equal? L1 L2) that tests whether L1 and L2 are equal. Two sets are equal if they
[RACKET CODING RECURSIVE]
![[RACKET CODING RECURSIVE] 3. Write a Racket function (set-equal? L1 L2) that](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f15aacdb28e_42066f15aac78a8f.jpg)
3. Write a Racket function (set-equal? L1 L2) that tests whether L1 and L2 are equal. Two sets are equal if they contain exactly the same members, ignoring ordering (or in other words, two sets are equal if they are a subset of each other). For example (set-equal? '(1 2 3) '(3 2 1)) ---> #t (set-equal? '(1 2) '(3 2 1)) ---> #f (set-equal? '(ryan susan john) '(susan john ryan)) ---> #t 3. Write a Racket function (set-equal? L1 L2) that tests whether L1 and L2 are equal. Two sets are equal if they contain exactly the same members, ignoring ordering (or in other words, two sets are equal if they are a subset of each other). For example (set-equal? '(1 2 3) '(3 2 1)) ---> #t (set-equal? '(1 2) '(3 2 1)) ---> #f (set-equal? '(ryan susan john) '(susan john ryan)) ---> #t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
