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

His python code can be shorten to

  from math import *
  prod(map(factorial, l))
which isn't much longer than his J code especially if you count the number of tokens rather than the number of characters as the J code uses ridiculously terse names.


You don't type tokens. Maybe if your keyboard has a 'factorial' button that's better, but mine doesn't. (Also J is extremely useful in a variety of other ways that would be much more complicated to replicate in python)




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

Search: