3 ms·
You've already got that. To cover my bases... The existential operator can be used infix: result = a ? 0 Or postfix (does "result" exist?) result? Or to
by jashkenas 15y ago
You've already got that. To cover my bases... The existential operator can be used infix:
result = a ? 0
Or postfix (does "result" exist?)
result?
Or to conditionally assign, as we've seen above:
result ?= a
- axiak 15y agoOh, sorry I missed that!