On Wed, Oct 12, 2011 at 1:55 PM, David Vaughan
<purpleblue...@googlemail.com> wrote:
> Can anyone help explain how this works? Specifically (#,<./)/.

The phrase
  x F/. y
uses x to classify items of y.  Every item with the same x value gets
grouped together in a list.  F is given that list to evaluate.

In this case, F is  (#, <./)

In other words, it produces two values:  the length of its argument,
and the smallest value in its argument.

The results of all of the individual applications of F are assembled
in the result you see.

In this case, x was (/:~@":"0) 3^~i.10x

In other words: you are grouping the elements of y (y being 3^~i.10x)
by the digits used to represent those values.  Since 512 and 125 have
the same digits, they go in the same bucket.

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

Reply via email to