Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on From Competitive Programming to APL. Parent comment
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.
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).