What is (set-difference '(r a t) '(f i n k))

  • A: (T A R)
  • B: (K N I F)
  • C: null
  • D: true
  • E: (R A T F I N K)

    Answer: A

    set-difference returns the elements that are present in the first set, but not in the second. Since the two sets are disjoint, the answer is the first set, perhaps re-ordered.

    Contents    Page-10    Prev    Next    Page+10    Index