And [: +/"1 = is the same as #/.~ .  For example:

   y=: 100 ?@$ 30
   +/"1 = y
3 4 2 7 6 7 4 3 3 4 3 3 4 1 3 5 5 5 1 3 2 5 1 5 2 3 1 2 1 2
   #/.~ y
3 4 2 7 6 7 4 3 3 4 3 3 4 1 3 5 5 5 1 3 2 5 1 5 2 3 1 2 1 2



On Fri, Dec 2, 2011 at 7:30 AM, Kip Murray <k...@math.uh.edu> wrote:

> Cool!  ( = for ~. =/ ] )
>
> On 12/2/2011 8:59 AM, Linda Alvord wrote:
> ...
> > fdkm =: [: /:~ ~. ,. [: +/"1 ~. =/ ]
> > fdkm2=: [: /:~ ~. ,. [: +/"1 =
> ...
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to