On Thu, Jun 4, 2009 at 4:28 AM, June Kim <[email protected]> wrote:
> http://groups.csail.mit.edu/mac/users/gjs/6.945/readings/MITApril2009Steele.pdf

Here's a J expression to sum the first n counting numbers:

sumn=: -:@* >:

   +/ 1+i.10
55
   sumn 10
55

I am disappointed that Guy Steele's paper did not even have a
footnote mentioning this technique.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to