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

No built-in is needed for an efficient reverse. It's just one or two lines longer because you need to write a tail-recursive helper with an accumulator, same as in functional languages: https://stackoverflow.com/a/74777180


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

Search: