Oh, oops.

I think you are right. Sorry about that, I'm really getting careless...

Let's go with the process specified by Erling Hellenäs:

require'stats'
perm=: A.~ i.@!@#
sper=: ,/@:(perm"1)@comb

Thanks,

-- 
Raul


On Mon, Nov 27, 2017 at 3:47 PM, Andrew Dabrowski <[email protected]> wrote:
> This is the correct solution to a different problem.  Isn't k sper n
> supposed to return lists without repetitions?
>
>
> On 11/27/2017 11:36 AM, Raul Miller wrote:
>>
>> http://code.jsoftware.com/wiki/Essays/Odometer
>>
>>     sper=: ] #.^:_1 i.@^~
>>
>> Thanks,
>>
>
> ----------------------------------------------------------------------
> 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