Hacker News new | past | comments | ask | show | jobs | submit login

Thank you for the feedback. You can use `ans` to refer to the last result:

  > 5+20
  25
  > ans+10
  35



Python 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)


That should be in the docs!


Done, thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: