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

Very nice! I often forget this handy thing during interviews. Good thing to impress your interviewer with :)


One thing of note: The arguments to the method you are memoizing need to be hashable. For example, if you want to memoize a method call whose parameters include a list, you will get an error!




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

Search: