Ah.  In that case there is a shorter computation:

   s=: 'abccdadba'
   +/ (#:}.i.2^#s) (-:|.)@# s
50



On Thu, Jan 10, 2013 at 10:42 AM, Don Guinn <dongu...@gmail.com> wrote:

> Could they be counting duplicates?
>
>    $ ~. (#~(-:|.)&>) 'abccdadba'<@:#"1~ }. #: i.2^9
>
> 29
>
> $ (#~(-:|.)&>) 'abccdadba'<@:#"1~ }. #: i.2^9
>
> 50
>
>
> On Thu, Jan 10, 2013 at 11:39 AM, Roger Hui <rogerhui.can...@gmail.com
> >wrote:
>
> > $ ~. (#~(-:|.)&>) 'abccdadba'<@:#"1~ }. #: i.2^9
> ----------------------------------------------------------------------
> 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