What is a promise in R and what does force() do?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what a promise is in R and what the force() function does. Tests understanding of lazy evaluation, how argument values are cached after first use, and the closure bug in function factories that forcing an argument prevents.