There are expressions shorter than those listed in Vector. Note that (+/%#) is not an answer. (+/%#)v would be, but there are shorter ones.
----- Original Message ----- From: Dan Bron <[EMAIL PROTECTED]> Date: Thursday, October 25, 2007 13:26 Subject: Re: [Jprogramming] Puzzle from "The Early Years" To: Programming forum <[email protected]> > Roger posed: > > What is the shortest expression you know of for computing > > the average of a vector v? (Shortest = fewest words.) > > Someone at Vector may've been reminiscing about the same > puzzle; check out the APL and J examples in the big yellow > box at the top of their front page: > > http://www.vector.org.uk/ > > > The J answer is shorter than the APL answer. > > This is due to the verb train innovation; i.e. tacit code. > The sole difference is that APL must name the vector twice. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
