Re: [Jprogramming] permutations without reverses

2015-08-21 Thread 'Pascal Jasmin' via Programming
Nice, thank you. - Original Message - From: R.E. Boss To: programm...@jsoftware.com Cc: Sent: Friday, August 21, 2015 2:45 PM Subject: Re: [Jprogramming] permutations without reverses ts'(#~({.<{:)"1)(i.@!A.i.)8' 0.029197332 9048960 R.E. Boss >

Re: [Jprogramming] permutations without reverses

2015-08-21 Thread R.E. Boss
ijdag 21 augustus 2015 19:36 > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] permutations without reverses > > A version that compares every element to the whole list (so far) to filter out > is innefficient even for perm 8 > > reduce =: 1 : '<"_

Re: [Jprogramming] permutations without reverses

2015-08-21 Thread 'Pascal Jasmin' via Programming
A version that compares every element to the whole list (so far) to filter out is innefficient even for perm 8 reduce =: 1 : '<"_1@[ ([: u (&.>)/(>@:) ,) <@:]' (}: (|.@:[ (|.@:[ , ])^:(-.@:e.) ])reduce ,:@:{:)&.|. (i.@!A.i.)4 - Original Message - From: 'Pascal Jasmin' via Programming T