Hacker News new | ask | show | jobs
by Singletoned 3505 days ago
It has been quite common when wanting to use a dictionary as a cache or counter such as a function cache or to count how many times a function is called with certain arguments. If the values of the arguments aren't hashable it doesn't work.