3 ms·
How did 11 come into the problem? Aren't the integers the domain over which we are operating? How is the comma obvious from the problem statement? If I can a
by brudgers 11y ago
How did 11 come into the problem?
Aren't the integers the domain over which we are operating?
How is the comma obvious from the problem statement?
If I can assume a person knows a particular language, the J version is perfectly clear.
+/ 1+ i.10
- espadrine 11y agoOr Perl6: [+] 1 ... 10
- TheLoneWolfling 11y agoPythonic range(a,b) is [a...b[ over the integers(in the interval sense.) But yes, I acknowledge that every programming language requires a certain amount of knowledge about generalities, Python being no exception. And I really should sit down at some point and learn an APL variant.