Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mahcuz
· 14y ago · 0 comments
That would only evaluate the original [true] key, though, right?
Comments
[–]
tgasson
14y ago
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.