Roger Hui wrote:
> The introduction to "The Early Years" posed an amusing puzzle:
> What is the shortest expression you know of for computing
> the average of a vector v?  (Shortest = fewest words.)
> The J answer is shorter than the APL answer.
>

I am not completely sure how this works, but how about

(%.#) v

John


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

Reply via email to