4 ms·
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
by howling 4y ago
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.
- rak1507 4y agoYou 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)