Game State Representation 3

Selector:

(size-of-pile game-state pile-number) must make the call

          (game-state 1)
to get the number of coins in pile 1, and the call
          (game-state 2)
to get the number of coins in pile 2:
     (define size-of-pile
       (lambda (game-state pile-number)
         (game-state pile-number)))

Q: What is the order of growth of this version of size-of-pile?

A: Θ(1)