Return an accessor function for retrieving an element from an array-like object supporting the get/set protocol.