What does it mean that functions are first-class objects in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what it means for functions to be first-class objects in R and what that lets you do in practice. Tests whether you can store, pass and return functions, explain closures and their enclosing environments, and spot the lazy-evaluation pitfall in function factories.