3 ms·
> BTW, to me Python has a number of APL-like features that make it fun and productive Can you please elaborate on this and give a few examples?
by znowi 13y ago
> BTW, to me Python has a number of APL-like features that make it fun and productive
Can you please elaborate on this and give a few examples?
- robomartin 13y agoHere's one example from playing around on Project Euler: def problem_1a(): return sum(set(range(3,1000,3) + range(5,1000,5))) While verbose, this is the kind of structure you would see if this was written in APL. In fact, you could translate this almost directly into APL.