Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why does nobody seem to know what imperative and declarative mean?. Parent comment
Declarative: N(N+1)/2
Imperative: for(int sum=0, int i=1; i<=N; i++) {sum = sum+i;}
There are no comments on this comment yet.
Declarative: N(N+1)/2
Imperative: for(int sum=0, int i=1; i<=N; i++) {sum = sum+i;}