7 ms·
Here'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
by robomartin 13y ago
Here'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.