Sorry for my poor coding of your suggestion!

Either I hadn't spotted your own code, or perhaps I'd forgotten you'd posted it.

Mike



On 14/08/2017 21:21, Raul Miller wrote:
If you are going to time one of my implementations, I'd really prefer
you time the second one rather than the first one. It's approximately
1500 times faster.

To save you from having to reread my post, here's the implementation:

    require'stats'
    perms=: A.&i.~ !
    ,10#.(perms 3){"1/1+3 comb 9

Thanks,



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

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

Reply via email to