Contents    Page-10    Prev    Next    Page+10    Index   

Given: (defn thecount [x] 1)
What is (map thecount '((a 1) (b 2) (c 3)))

  • A: (1 1 1)
  • B: (1 2 3)
  • C: 1
  • D: (a b c)
  • E: 3

    Answer: A

    map returns a list of answers from applying the specified function to each element of the input list. Since thecount always returns 1, the result is a list of 1 for each input element.