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

"That sort of sucks. Further, it makes some functions, like euclidean, hopelessly non-general, since euclidean now has to know what function to call to get a frequency [3]."

No. You can just pass in the appropriate, memoized frequency function to call. In the new code, that just means that "freq" would be an additional argument to euclidean, instead of a globally defined function.



Right. That's what I said in the footnote, [3].




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

Search: