Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With respect, I’m not seeing how your first addOne example returns an integer one greater than its integer argument.

Am I missing something?



  (x * 1) + 0 - x + x + 1
  x + 0 - x + x + 1
  x - x + x + 1
  0 + x + 1
  x + 1




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

Search: