Ability to use a function as a selector in the API