Lazy Evaluation Pitfalls
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
Code calls map on a list of records, then checks the length of the result and later loops over it twice, and both steps misbehave. Explain why, and how to work with lazy iterators safely.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.