3 ms·
Thank you for the feedback. You can use `ans` to refer to the last result: > 5+20 25 > ans+10 35
by sharkdp 10y ago
Thank you for the feedback. You can use `ans` to refer to the last result:
> 5+20
25
> ans+10
35
- socialist_coder 10y agoThat should be in the docs!
- sharkdp 10y agoDone, thanks!
- cjwoodall 10y agoPython and a few other REPLs seem to use _ to capture the previous result. Could be a useful shorthand (not to complicated your design at all)