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

That's why I described a not very well known trick that requires just +1 line, the definition of hash(). It's neither fast nor maintainable, it's just a neat hack that gives you some of the performance of hash tables for negligible source code overhead. Perfect for tiny, self-contained programs like this one.


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

Search: