News for hackers. Stuff that matters.
Re:From Competitive Programming to APL by kwertzzz on Friday June 04, 2021 @08:41AM (#27392992)
The compactness of APL is indeed quite intriguing. One could also write your example in Julia by:

sum(j -> j*2.0^(-j),1:n)

sum(function,array) applies function to all elements of array before the summation (without need to allocate an intermediate array).

There are no comments on this comment yet.