Menu

[solved]-Ve Struggling Alot Working Data Structures Drracket M Hoping Get Help Solving Question 3 Q39084579

I’ve been struggling alot with working with data structures inDrRacket. I’m hoping I can get some help solving question #3

3. Keys in Multiple Dictionaries. Exercise Write a function (common-keys D1 D2) that consumes two Dict and returns a (listof

3. Keys in Multiple Dictionaries. Exercise Write a function (common-keys D1 D2) that consumes two Dict and returns a (listof Any) containing all the keys which occur in both dictionaries. The keys should stay in the same order they occur in D1. For example, (common-keys (list (make-asc i “one”) (make-asc 5 “five”) (make-asc 7 “seven”) (make-asc 3 “three”)) (list (make-asc 3 “trois”) (make-asc 8 “huit”) (make-asc 11 “onze”) (make-asc 5 “cinq”))) => (list 5 3) Show transcribed image text 3. Keys in Multiple Dictionaries. Exercise Write a function (common-keys D1 D2) that consumes two Dict and returns a (listof Any) containing all the keys which occur in both dictionaries. The keys should stay in the same order they occur in D1. For example, (common-keys (list (make-asc i “one”) (make-asc 5 “five”) (make-asc 7 “seven”) (make-asc 3 “three”)) (list (make-asc 3 “trois”) (make-asc 8 “huit”) (make-asc 11 “onze”) (make-asc 5 “cinq”))) => (list 5 3)

Expert Answer


Answer to I’ve been struggling alot with working with data structures in DrRacket. I’m hoping I can get some help solving question… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *