What does R's <<- operator do and how does it interact with enclosing environments?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what R's super-assignment operator <<- does and how it searches enclosing environments when it assigns a value. Tests understanding of lexical scoping, closures that keep mutable state, and the side effects of non-local assignment.