I have to say that this is a definition of palindrome that I have never
seen before, and one that I don't consider reasonable.



On Thu, Jan 10, 2013 at 10:50 AM, Roger Hui <[email protected]>wrote:

> 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 <[email protected]> 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 <[email protected]
>> >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