HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by mahcuz | Hacker News Reader
Parent
Full thread
mahcuz
·
That would only evaluate the original [true] key, though, right?
View on HN
tgasson
·
No, `test[true]` will be reassigned to the given function each time the condition evaluates to true. Calling `test[true]()` will execute that given function.
Reply on news.ycombinator.com